import type { LayerSpecification as MapLibreLayerSpecification } from 'maplibre-gl'; import type { ColorRampName } from './colormap'; import type { LegendImage } from './legend'; import type { Quantity } from './quantity'; import type TimeDomain from './time'; 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]; quantity?: Quantity; backgroundRemovable?: boolean; legendImages?: LegendImage[]; timeDomain?: TimeDomain; defaultTime?: string; }; export type LayerState = { visible: boolean; opacity: number; colorRamp?: ColorRampName; removeBackground?: boolean; time?: string; }; export type LayerControl = { id: string; title: string; colorRampRange?: Layer['colorRampRange']; quantity?: Layer['quantity']; legendImages?: Layer['legendImages']; timeDomain?: Layer['timeDomain']; } & 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 timedLayers: (layers: readonly LayerControl[]) => LayerControl[]; export declare const toLayerControlItems: (layers: readonly Layer[], states: ReadonlyMap) => LayerControl[]; export declare const humanizeLayerName: (name: string) => string;