import { Feature, FeatureCollection, LineString, MultiLineString, MultiPolygon, Polygon, Properties } from "@turf/helpers"; /** * Converts a {@link Polygon} to {@link LineString|(Multi)LineString} or {@link MultiPolygon} to a * {@link FeatureCollection} of {@link LineString|(Multi)LineString}. * * @name polygonToLine * @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]; */ export default function (poly: Feature | G, options?: { properties?: any; }): Feature | FeatureCollection; /** * @private */ export declare function polygonToLine(poly: Feature | G, options?: { properties?: any; }): Feature; /** * @private */ export declare function multiPolygonToLine(multiPoly: Feature | G, options?: { properties?: P; }): FeatureCollection; /** * @private */ export declare function coordsToLine

(coords: number[][][], properties: P): Feature;