import type { AddLayerObject, LngLatBoundsLike } from 'maplibre-gl'; import { WarpedMapLayer } from '@allmaps/maplibre'; import MapPreviewer from './map'; import type IIIFManifestResource from '../resources/iiif-manifest'; import type { LayerState, PreviewStyleLayer } from '../layers'; export default class GeoreferencePreviewer extends MapPreviewer { protected resource: IIIFManifestResource; readonly projection: "mercator"; readonly maxPitch = 0; readonly reportsDrawing = true; protected layer: WarpedMapLayer | undefined; private backgroundColors; private detecting; private backgroundRemoved; label(): string; protected createSources(): Promise<[]>; protected getLayerId(): string; protected createLayers(): Promise; preview(): Promise; protected watchFirstTile(): void; private handleFirstTile; private detectBackground; clearPreview(): Promise; protected applyStyleLayerState(styleLayer: PreviewStyleLayer, state: LayerState): void; protected applyOpacity(_styleLayer: PreviewStyleLayer, opacity: number): void; private applyBackgroundRemoval; private removeColorOptions; getBounds(): Promise; }