import type { SimpleGeometry } from './wktToGeometry'; import type { Position } from 'geojson'; export interface SourceCrs { sourceCrs?: string; sourceProj4Def?: string; } export type Projector = (position: Position) => Position; export declare class UnknownCrsError extends Error { } /** Builds a projector to lon/lat; `sourceProj4Def` wins over `sourceCrs`, and neither means the data is already EPSG:4326. */ export declare function createLonLatProjector({ sourceCrs, sourceProj4Def }: SourceCrs): Projector; /** Reprojects a geometry, or returns null when any position lands outside lon/lat range (a wrong source CRS). */ export declare function reprojectGeometry(geometry: G, project: Projector): G | null; //# sourceMappingURL=reprojectGeometry.d.ts.map