import { GeoJsonPosition } from "./GeoJsonSchemas"; interface PointCoordinate { longitude: number; latitude: number; } interface GeoJSONGeometry { type?: unknown; coordinates?: GeoJsonPosition | Array | Array> | null; } interface GeoJsonFeature { type?: unknown; geometry?: GeoJSONGeometry | null; } /** * @description Returns coordinates in consistent format * @param inconsistentCoordinates Single point, array of points or nested array of points * @returns {GeoJsonPosition[]} Array of standardized coordinates */ export declare const coordinatesToStandardFormat: (inconsistentCoordinates: GeoJsonPosition | Array | Array> | null | undefined) => ([number, number] | [number, number, number])[]; /** * @description Extracts a point coordinate from a GeoJSON object. * @param geoObject A GeoJSON object. * @returns {PointCoordinate} A point coordinate. */ export declare const getPointCoordinateFromGeoJsonObject: (geoObject: GeoJsonFeature | GeoJSONGeometry | undefined | null) => PointCoordinate | undefined; /** * @description Extracts multiple point coordinates from a GeoJSON object. * @param geoObject A GeoJSON object. * @returns {PointCoordinate[]} An array of point coordinates. * @example getMultipleCoordinatesFromGeoJsonObject({ type: "Point", coordinates: [1, 2] }) // [{ longitude: 1, latitude: 2 }] */ export declare const getMultipleCoordinatesFromGeoJsonObject: (geoObject: GeoJsonFeature | GeoJSONGeometry | undefined | null) => Array | undefined; export {};