import * as L from 'leaflet'; import type { Coords, DoneCallback } from 'leaflet'; import { getColorStops } from '../geotiff/utils/colormap-utils'; export interface GeoTIFFGridLayerOptions extends L.GridLayerOptions { url: string; colorMap?: Parameters[0]; valueRange?: [number, number]; nodata?: number; resolution?: number; resampleMethod?: 'near' | 'bilinear'; tileSize?: number; opacity?: number; zIndex?: number; viewProjection?: string; } export declare class GeoTIFFGridLayer extends L.GridLayer { private readonly geotiffOptions; private tileProcessor; private colorStops?; private loadingPromise?; private readonly defaultResolution; private readonly defaultResample; constructor(options: GeoTIFFGridLayerOptions); onAdd(map: L.Map): this; createTile(coords: Coords, done: DoneCallback): HTMLCanvasElement; private ensureReady; updateSource(options: Partial): Promise; private initializeProcessor; /** * Set Leaflet bounds from GeoTIFF source bounds * Restricts tile loading to the GeoTIFF coverage area */ private setViewBounds; }