/** * Point-in-polygon and point-to-polygon distance for WGS84 rings, sufficient * for "is this point inside / how far is the nearest mapped extent" at the * radii gaff-check uses (≤ ~5 km). Distances use a local equirectangular * projection — error is negligible at these scales and latitudes. */ export type Ring = Array<[number, number]>; export type Polygon = Ring[]; export type MultiPolygon = Polygon[]; export declare function pointInPolygon(lng: number, lat: number, polygon: Polygon): boolean; export declare function pointInMultiPolygon(lng: number, lat: number, mp: MultiPolygon): boolean; /** * Distance in metres from a WGS84 point to a multipolygon's boundary; * 0 when the point lies inside. */ export declare function distanceToMultiPolygon(lng: number, lat: number, mp: MultiPolygon): number;