import { LngLatBounds, type LngLatBoundsLike, type LngLatLike } from 'maplibre-gl'; export declare const ENVELOPE_REGEX: RegExp; export declare const boundsToGeoJSON: (bounds: LngLatBounds) => { type: string; coordinates: number[][][]; }; export declare const unionBounds: (extents: (LngLatBoundsLike | undefined)[]) => LngLatBounds | undefined; export declare const clampToHemisphere: (extent: LngLatBoundsLike) => LngLatBounds; export declare const WORLD: LngLatBoundsLike; export declare const bboxToBounds: (bbox: string) => LngLatBounds; /** * A camera stated in whichever form one can be given in: the west, south, east, north list * boundsToBbox hands back, an ENVELOPE string as `dcat_bbox` holds one, or anything else MapLibre * reads as bounds. Nothing at all for a string that says something else, or for numbers that don't * describe a box - a camera that can't be pointed is worth reporting rather than guessing at. * * The east edge is carried past the west the way unwrapEast does, which makes this the inverse of * boundsToBbox: a box that crosses the antimeridian is read back as the strait it covers rather than * as the rest of the world, so an area a reader asked to search can be handed straight back. */ export declare const readBounds: (bounds: LngLatBoundsLike | string) => LngLatBounds | undefined; export declare const boundsToBbox: (bounds: LngLatBounds) => [number, number, number, number]; export declare const lngLatToMercator: (lngLat: LngLatLike) => [number, number]; export declare const mercatorBbox: (coords: LngLatLike[]) => string; export declare const tileBbox3857: (z: number, x: number, y: number, bufferRatio?: number) => [number, number, number, number]; export declare const tileLngLatSpan: (z: number) => number; export declare const tilesCovering: (bounds: LngLatBounds, zoom: number) => number; export type PixelWindow = { bbox: string; width: number; height: number; x: number; y: number; }; export declare const pixelWindowCenter: (window: PixelWindow) => { x: number; y: number; resolution: number; }; export declare const mercatorToLngLat: ([x, y]: GeoJSON.Position) => [number, number]; export declare const mercatorGeomToLngLat: (geometry: GeoJSON.Geometry) => GeoJSON.Geometry; export declare const geomToGeoJSON: (geometry: string) => import("geojson").Geometry;