import { MaplibreActions } from '../types'; import { ErrorEvent, Map, MapContextEvent, MapDataEvent, MapLibreEvent, MapLibreZoomEvent, MapMouseEvent, MapOptions, MapSourceDataEvent, MapStyleDataEvent, MapStyleImageMissingEvent, MapTerrainEvent, MapTouchEvent, MapWheelEvent } from 'maplibre-gl'; /** * Enhanced Maplibre component props with comprehensive configuration options */ interface MaplibreProps { /** Map configuration options */ options?: Partial; /** Callback for registering map actions */ register?: (actions: MaplibreActions) => void; /** Enable debug logging */ debug?: boolean; /** Automatically cleanup resources on unmount */ autoCleanup?: boolean; /** Container ID for the map element */ containerId?: string; /** Custom container class names */ containerClass?: string; /** * Error handling callback. * * Not `onError`: this component also emits `error`, and Vue puts an emit's * handler on `$props` under that same `onError` key. Two declarations of one * prop are intersected, so both the prop and the emit became impossible to * satisfy -- no function is assignable to * `((error: any) => void) & ((ev: ErrorEvent) => any)`. */ onMapError?: (error: any) => void; /** Load success callback. Named for the same reason as `onMapError`. */ onMapLoad?: (map: Map) => void; } declare function __VLS_template(): { loading?(_: {}): any; error?(_: {}): any; default?(_: {}): any; }; declare const __VLS_component: import('vue').DefineComponent, { options: () => { style: string; center: [number, number]; zoom: number; pitch: number; bearing: number; antialias: boolean; optimizeForTerrain: boolean; preserveDrawingBuffer: boolean; refreshExpiredTiles: boolean; maxTileCacheSize: null; localIdeographFontFamily: boolean; transformRequest: undefined; collectResourceTiming: boolean; fadeDuration: number; crossSourceCollisions: boolean; }; debug: boolean; autoCleanup: boolean; containerId: () => string; containerClass: string; }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { error: (ev: ErrorEvent) => void; load: (ev: MapLibreEvent) => void; idle: (ev: MapLibreEvent) => void; remove: (ev: MapLibreEvent) => void; render: (ev: MapLibreEvent) => void; resize: (ev: MapLibreEvent) => void; webglcontextlost: (ev: MapContextEvent) => void; webglcontextrestored: (ev: MapContextEvent) => void; dataloading: (ev: MapDataEvent) => void; data: (ev: MapDataEvent) => void; tiledataloading: (ev: MapDataEvent) => void; sourcedataloading: (ev: MapSourceDataEvent) => void; sourcedata: (ev: MapSourceDataEvent) => void; styledata: (ev: MapStyleDataEvent) => void; styleimagemissing: (ev: MapStyleImageMissingEvent) => void; dataabort: (ev: MapDataEvent) => void; sourcedataabort: (ev: MapSourceDataEvent) => void; boxzoomcancel: (ev: MapLibreZoomEvent) => void; boxzoomstart: (ev: MapLibreZoomEvent) => void; boxzoomend: (ev: MapLibreZoomEvent) => void; touchcancel: (ev: MapTouchEvent) => void; touchmove: (ev: MapTouchEvent) => void; touchend: (ev: MapTouchEvent) => void; touchstart: (ev: MapTouchEvent) => void; click: (ev: MapMouseEvent) => void; contextmenu: (ev: MapMouseEvent) => void; dblclick: (ev: MapMouseEvent) => void; mousemove: (ev: MapMouseEvent) => void; mouseup: (ev: MapMouseEvent) => void; mousedown: (ev: MapMouseEvent) => void; mouseout: (ev: MapMouseEvent) => void; mouseover: (ev: MapMouseEvent) => void; zoom: (ev: MapLibreEvent) => void; movestart: (ev: MapLibreEvent) => void; move: (ev: MapLibreEvent) => void; moveend: (ev: MapLibreEvent) => void; zoomstart: (ev: MapLibreEvent) => void; zoomend: (ev: MapLibreEvent) => void; rotatestart: (ev: MapLibreEvent) => void; rotate: (ev: MapLibreEvent) => void; rotateend: (ev: MapLibreEvent) => void; dragstart: (ev: MapLibreEvent) => void; drag: (ev: MapLibreEvent) => void; dragend: (ev: MapLibreEvent) => void; pitchstart: (ev: MapLibreEvent) => void; pitch: (ev: MapLibreEvent) => void; pitchend: (ev: MapLibreEvent) => void; wheel: (ev: MapWheelEvent) => void; terrain: (ev: MapTerrainEvent) => void; register: (actions: MaplibreActions) => void; }, string, import('vue').PublicProps, Readonly, { options: () => { style: string; center: [number, number]; zoom: number; pitch: number; bearing: number; antialias: boolean; optimizeForTerrain: boolean; preserveDrawingBuffer: boolean; refreshExpiredTiles: boolean; maxTileCacheSize: null; localIdeographFontFamily: boolean; transformRequest: undefined; collectResourceTiming: boolean; fadeDuration: number; crossSourceCollisions: boolean; }; debug: boolean; autoCleanup: boolean; containerId: () => string; containerClass: string; }>>> & Readonly<{ onZoom?: ((ev: MapLibreEvent) => any) | undefined; onError?: ((ev: ErrorEvent) => any) | undefined; onLoad?: ((ev: MapLibreEvent) => any) | undefined; onIdle?: ((ev: MapLibreEvent) => any) | undefined; onRemove?: ((ev: MapLibreEvent) => any) | undefined; onRender?: ((ev: MapLibreEvent) => any) | undefined; onResize?: ((ev: MapLibreEvent) => any) | undefined; onWebglcontextlost?: ((ev: MapContextEvent) => any) | undefined; onWebglcontextrestored?: ((ev: MapContextEvent) => any) | undefined; onDataloading?: ((ev: MapDataEvent) => any) | undefined; onData?: ((ev: MapDataEvent) => any) | undefined; onTiledataloading?: ((ev: MapDataEvent) => any) | undefined; onSourcedataloading?: ((ev: MapSourceDataEvent) => any) | undefined; onSourcedata?: ((ev: MapSourceDataEvent) => any) | undefined; onStyledata?: ((ev: MapStyleDataEvent) => any) | undefined; onStyleimagemissing?: ((ev: MapStyleImageMissingEvent) => any) | undefined; onDataabort?: ((ev: MapDataEvent) => any) | undefined; onSourcedataabort?: ((ev: MapSourceDataEvent) => any) | undefined; onBoxzoomcancel?: ((ev: MapLibreZoomEvent) => any) | undefined; onBoxzoomstart?: ((ev: MapLibreZoomEvent) => any) | undefined; onBoxzoomend?: ((ev: MapLibreZoomEvent) => any) | undefined; onTouchcancel?: ((ev: MapTouchEvent) => any) | undefined; onTouchmove?: ((ev: MapTouchEvent) => any) | undefined; onTouchend?: ((ev: MapTouchEvent) => any) | undefined; onTouchstart?: ((ev: MapTouchEvent) => any) | undefined; onClick?: ((ev: MapMouseEvent) => any) | undefined; onContextmenu?: ((ev: MapMouseEvent) => any) | undefined; onDblclick?: ((ev: MapMouseEvent) => any) | undefined; onMousemove?: ((ev: MapMouseEvent) => any) | undefined; onMouseup?: ((ev: MapMouseEvent) => any) | undefined; onMousedown?: ((ev: MapMouseEvent) => any) | undefined; onMouseout?: ((ev: MapMouseEvent) => any) | undefined; onMouseover?: ((ev: MapMouseEvent) => any) | undefined; onMovestart?: ((ev: MapLibreEvent) => any) | undefined; onMove?: ((ev: MapLibreEvent) => any) | undefined; onMoveend?: ((ev: MapLibreEvent) => any) | undefined; onZoomstart?: ((ev: MapLibreEvent) => any) | undefined; onZoomend?: ((ev: MapLibreEvent) => any) | undefined; onRotatestart?: ((ev: MapLibreEvent) => any) | undefined; onRotate?: ((ev: MapLibreEvent) => any) | undefined; onRotateend?: ((ev: MapLibreEvent) => any) | undefined; onDragstart?: ((ev: MapLibreEvent) => any) | undefined; onDrag?: ((ev: MapLibreEvent) => any) | undefined; onDragend?: ((ev: MapLibreEvent) => any) | undefined; onPitchstart?: ((ev: MapLibreEvent) => any) | undefined; onPitch?: ((ev: MapLibreEvent) => any) | undefined; onPitchend?: ((ev: MapLibreEvent) => any) | undefined; onWheel?: ((ev: MapWheelEvent) => any) | undefined; onTerrain?: ((ev: MapTerrainEvent) => any) | undefined; onRegister?: ((actions: MaplibreActions) => any) | undefined; }>, { debug: boolean; autoCleanup: boolean; options: Partial; containerId: string; containerClass: string; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; declare const _default: __VLS_WithTemplateSlots>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };