import { Control } from 'leaflet'; import type { ControlOptions, Map as LeafletMap } from 'leaflet'; declare type ScaleUnit = 'nautical' | 'kilometer' | 'mile'; interface CustomScaleOptions extends ControlOptions { maxWidth?: number; units?: ScaleUnit[]; unitLabels?: { [key in ScaleUnit]: string; }; } declare class CustomScale extends Control { private _container; private _map; private _maxWidth; private _position; private _units; private _unitLabels; constructor(options?: CustomScaleOptions); onAdd(map: LeafletMap): HTMLElement; onRemove(map: LeafletMap): void; setPosition(position: string): this; update(): void; } export default CustomScale;