import DrawUtil from '@mapbox-web/draw'; import type { IndexAny } from '@mapbox-react/utils/es/common'; import type { Map } from 'mapbox-gl'; export declare const MODES: { STATIC: string; SIMPLE_SELECT: string; LENGTH: string; AREA: string; }; /** * 创建测量工具 * @param map mapbox实例 * @param options 可选项 * @returns */ export declare function createMeasure(map: Map, options?: { [x: string]: any; showTooltip: boolean; styles?: IndexAny[]; maxboxDrawInstance?: DrawUtil; delete?: (param: { mode: string; event: any; tooltip?: ReturnType; featuresCount: number; }) => void; update?: (param: { result: number; mode: string; event: any; tooltip?: ReturnType; featuresCount: number; }) => void; }): { currentModeName: () => string; changeMode: (mode: string, opts?: {}) => void; clearAll: () => void; destroy: () => void; }; declare function createMeasureTooltip(options: { showTooltip: boolean; }): { id: string; marker: any; closeButton: HTMLAnchorElement; measureTooltipElement: HTMLDivElement; measureTooltipElementTitle: HTMLHeadingElement; measureTooltipElementContent: HTMLDivElement; }; export {};