import AsyncCache from "./cache"; import { HeightTile } from "./height-tile"; import type { ContourTile, DecodeImageFunction, DemManager, DemManagerInitizlizationParameters, DemTile, Encoding, FetchResponse, GetTileFunction, IndividualContourTileOptions } from "./types"; import { Timer } from "./performance"; /** * Caches, decodes, and processes raster tiles in the current thread. */ export declare class LocalDemManager implements DemManager { tileCache: AsyncCache; parsedCache: AsyncCache; contourCache: AsyncCache; demUrlPattern: string; encoding: Encoding; maxzoom: number; minzoom: number; sparse: boolean; timeoutMs: number; loaded: Promise; decodeImage: DecodeImageFunction; getTile: GetTileFunction; constructor(options: DemManagerInitizlizationParameters); fetchTile(z: number, x: number, y: number, parentAbortController: AbortController, timer?: Timer): Promise; fetchAndParseTile: (z: number, x: number, y: number, abortController: AbortController, timer?: Timer) => Promise; fetchDem(z: number, x: number, y: number, options: IndividualContourTileOptions, abortController: AbortController, timer?: Timer): Promise; private demZoom; /** * The DEM under the contour tile and its 8 neighbors, at the zoom `fetchDem` uses or, when the tileset answers * that the tile under the contour tile does not exist, at the closest lower zoom down to `minzoom` that has it - * a sparse tileset leaves out its higher zooms where it has no data for them. A neighbor the tileset does not * have is left out. Both only apply when `sparse` is enabled; otherwise any failed DEM request fails the tile. */ private fetchNeighbors; private fetchDemAtZoom; fetchContourTile(z: number, x: number, y: number, options: IndividualContourTileOptions, parentAbortController: AbortController, timer?: Timer): Promise; }