import type { LayerSpecification as MapLibreLayerSpecification } from 'maplibre-gl'; import type { ColorRampName } from './colormap'; export type PreviewStyleLayer = { id: string; type: MapLibreLayerSpecification['type'] | 'custom'; internal?: boolean; }; export type Layer = { id: string; title: string; defaultOpacity: number; styleLayers: PreviewStyleLayer[]; defaultColorRamp?: ColorRampName; colorRampRange?: readonly [min: number, max: number]; backgroundRemovable?: boolean; }; export type LayerState = { visible: boolean; opacity: number; colorRamp?: ColorRampName; removeBackground?: boolean; }; export type LayerControl = { id: string; title: string; colorRampRange?: Layer['colorRampRange']; } & LayerState; export declare const resolveLayerState: (layer: Layer, states: ReadonlyMap) => LayerState; export declare const isLayerDrawn: ({ visible, opacity }: LayerState) => boolean; export declare const rampedLayers: (layers: readonly LayerControl[]) => LayerControl[]; export declare const toLayerControlItems: (layers: readonly Layer[], states: ReadonlyMap) => LayerControl[]; export declare const humanizeLayerName: (name: string) => string;