import { IControl } from 'mapbox-gl'; import type { Map } from 'mapbox-gl'; export declare type LayersView = string[] | Record; export declare type LegendControlOptions = { collapsed?: boolean; toggler?: boolean; layers?: LayersView; }; export default class LegendControl implements IControl { private _options; private _container; private _map; constructor(options?: LegendControlOptions); onAdd(map: Map): HTMLElement; onRemove(): void; addLayers(layers: LayersView): void; removeLayers(layerIds: string[]): void; private _isAttributeVisible; private _getBlock; private _toggleButton; private _loadPanes; }