import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, FeatureCollection, Feature, GeometryObject, GeometryCollection, AllGeoJSON, FeatureGeometryCollection, ExtendedFeatureCollection, Properties, BBox, Id } from '@turf/helpers'; /** * http://turfjs.org/docs/#coordreduce */ export function coordReduce( geojson: AllGeoJSON, callback: (previousValue: Reducer, currentCoord: number[], coordIndex: number, featureIndex: number, featureSubIndex: number) => Reducer, initialValue?: Reducer ): Reducer; /** * http://turfjs.org/docs/#coordeach */ export function coordEach( geojson: AllGeoJSON, callback: (currentCoord: number[], coordIndex: number, featureIndex: number, featureSubIndex: number) => void ): void; /** * http://turfjs.org/docs/#propeach */ export function propEach( geojson: Feature | FeatureCollection, callback: (currentProperties: Props, featureIndex: number) => void ): void; /** * http://turfjs.org/docs/#propreduce */ export function propReduce( geojson: Feature | FeatureCollection, callback: (previousValue: Reducer, currentProperties: Props, featureIndex: number) => Reducer, initialValue?: Reducer ): Reducer; /** * http://turfjs.org/docs/#featurereduce */ export function featureReduce( geojson: Feature | FeatureCollection | FeatureGeometryCollection, callback: (previousValue: Reducer, currentFeature: Feature, featureIndex: number) => Reducer, initialValue?: Reducer ): Reducer; export function featureReduce>( geojson: Feat | ExtendedFeatureCollection, callback: (previousValue: Reducer, currentFeature: Feat, featureIndex: number) => Reducer, initialValue?: Reducer ): Reducer; /** * http://turfjs.org/docs/#featureeach */ export function featureEach( geojson: Feature | FeatureCollection | FeatureGeometryCollection, callback: (currentFeature: Feature, featureIndex: number) => void ): void; export function featureEach>( geojson: Feat | ExtendedFeatureCollection, callback: (currentFeature: Feat, featureIndex: number) => void ): void; /** * http://turfjs.org/docs/#coordall */ export function coordAll(geojson: AllGeoJSON): number[][]; /** * http://turfjs.org/docs/#geomreduce */ export function geomReduce( geojson: Feature | FeatureCollection | Geom | GeometryCollection | FeatureGeometryCollection, callback: (previousValue: Reducer, currentGeometry: Geom, featureIndex: number, currentProperties: Properties, currentBBox: BBox, currentId: Id) => Reducer, initialValue?: Reducer ): Reducer; /** * http://turfjs.org/docs/#geomeach */ export function geomEach( geojson: Feature | FeatureCollection | Geom | GeometryCollection | FeatureGeometryCollection, callback: (currentGeometry: Geom, featureIndex: number, currentProperties: Properties, currentBBox: BBox, currentId: Id) => void ): void; /** * http://turfjs.org/docs/#flattenreduce */ export function flattenReduce( geojson: Feature | FeatureCollection | Geom | GeometryCollection | FeatureGeometryCollection, callback: (previousValue: Reducer, currentFeature: Feature, featureIndex: number, featureSubIndex: number) => Reducer, initialValue?: Reducer ): Reducer; /** * http://turfjs.org/docs/#flatteneach */ export function flattenEach( geojson: Feature | FeatureCollection | Geom | GeometryCollection | FeatureGeometryCollection, callback: (currentFeature: Feature, featureIndex: number, featureSubIndex: number) => void ): void; /** * http://turfjs.org/docs/#segmentreduce */ export function segmentReduce( geojson: Feature | FeatureCollection | GeometryObject | GeometryCollection | FeatureGeometryCollection, callback: (previousValue?: Reducer, currentSegment?: Feature, featureIndex?: number, featureSubIndex?: number, segmentIndex?: number) => Reducer, initialValue?: Reducer ): Reducer; /** * http://turfjs.org/docs/#segmenteach */ export function segmentEach( geojson: Feature | FeatureCollection | GeometryObject | GeometryCollection | FeatureGeometryCollection, callback: (currentSegment?: Feature, featureIndex?: number, featureSubIndex?: number, segmentIndex?: number) => void ): void; /** * http://turfjs.org/docs/#linereduce */ export function lineReduce( geojson: Feature | Geom, callback: (previousValue?: Reducer, currentLine?: Feature, featureIndex?: number, featureSubIndex?: number, lineIndex?: number) => Reducer, initialValue?: Reducer ): Reducer; /** * http://turfjs.org/docs/#lineeach */ export function lineEach( geojson: Feature | Geom, callback: (currentLine?: Feature, featureIndex?: number, featureSubIndex?: number, lineIndex?: number) => void ): void;