/** * @typedef {[number, number, number, number]} BBox */ /** * Return the bounding box for the given tile. * * @param {{ x: number, y: number, z: number }} tile * @returns {BBox} Bounding Box [w, s, e, n] */ declare function tileToBBox({ x, y, z }: { x: number; y: number; z: number; }): BBox; /** * @param {{ x: number, y: number, z: number }} tile */ declare function getQuadkey({ x, y, z }: { x: number; y: number; z: number; }): string; /** * From an array of tile URL templates, get the URL for the given tile. * * @param {string[]} urls * @param {{ x: number, y: number, z: number, scheme?: 'xyz' | 'tms' }} opts */ declare function getTileUrl(urls: string[], { x, y, z, scheme }: { x: number; y: number; z: number; scheme?: "xyz" | "tms"; }): string; /** * Returns a bbox that is the smallest bounding box that contains all the input bboxes. * * @param {[BBox, ...BBox[]]} bboxes * @returns {BBox} Bounding Box [w, s, e, n] */ declare function unionBBox(bboxes: [BBox, ...BBox[]]): BBox; /** Spherical Mercator max bounds, rounded to 6 decimal places */ declare const MAX_BOUNDS: BBox; type BBox = [number, number, number, number]; export { type BBox, MAX_BOUNDS, getQuadkey, getTileUrl, tileToBBox, unionBBox };