import { R as RasterLayerOptions, E as EliApiKeys, a as RasterSourceSpec, b as RasterLayerSpec, c as EliLayer } from '../specs-_F0H5585.js'; export { e as eliSourceId, g as getRasterLayerSpec, d as getRasterSourceSpec } from '../specs-_F0H5585.js'; import 'geojson'; /** * Minimal structural subset of the maplibre-gl `Map` we use. Defined locally so * this entry doesn't hard-depend on `maplibre-gl` types — any compatible map * (including the instance behind react-map-gl) works. */ type MapLike = { addSource(id: string, source: RasterSourceSpec): void; removeSource(id: string): void; getSource(id: string): unknown; addLayer(layer: RasterLayerSpec, beforeId?: string): void; removeLayer(id: string): void; getLayer(id: string): unknown; }; type AddEditorLayerOptions = RasterLayerOptions & { /** Insert the raster layer below this existing layer id. */ beforeId?: string; /** API keys to substitute into the tile URLs (e.g. `{ apikey: '…' }`). */ apiKeys?: EliApiKeys; /** See {@link getRasterSourceSpec} — scales WMS WIDTH/HEIGHT for retina. */ pixelRatio?: number; }; /** * Add an ELI layer to a maplibre-gl map as a raster source + layer. Idempotent: * re-adding the same layer replaces it. Returns the source/layer id used. * * Styling is yours — pass `paint` (e.g. `{ 'raster-opacity': 0.7 }`) or restyle * the layer afterwards. */ declare function addEditorLayer(map: MapLike, layer: EliLayer, options?: AddEditorLayerOptions): string; /** Remove an ELI layer (and its source) previously added with {@link addEditorLayer}. */ declare function removeEditorLayer(map: MapLike, layerId: string, sourceId?: string): void; export { type AddEditorLayerOptions, type MapLike, RasterLayerSpec, RasterSourceSpec, addEditorLayer, removeEditorLayer };