import { Polygon, MultiPolygon, GeoJsonProperties, Feature, LineString, MultiLineString, FeatureCollection } from 'geojson'; /** * Converts a {@link Polygon} to {@link LineString|(Multi)LineString} or {@link MultiPolygon} to a * {@link FeatureCollection} of {@link LineString|(Multi)LineString}. * * @function * @param {Feature} poly Feature to convert * @param {Object} [options={}] Optional parameters * @param {Object} [options.properties={}] translates GeoJSON properties to Feature * @returns {FeatureCollection|Feature} converted (Multi)Polygon to (Multi)LineString * @example * var poly = turf.polygon([[[125, -30], [145, -30], [145, -20], [125, -20], [125, -30]]]); * * var line = turf.polygonToLine(poly); * * //addToMap * var addToMap = [line]; */ declare function polygonToLine(poly: Feature | G, options?: { properties?: any; }): Feature | FeatureCollection; /** * @private */ declare function singlePolygonToLine(poly: Feature | G, options?: { properties?: any; }): Feature; /** * @private */ declare function multiPolygonToLine(multiPoly: Feature | G, options?: { properties?: P; }): FeatureCollection; /** * @private */ declare function coordsToLine

(coords: number[][][], properties: P): Feature; export { coordsToLine, polygonToLine as default, multiPolygonToLine, polygonToLine, singlePolygonToLine };