/// import type { Map, MapLayerEventType, MapLayerMouseEvent, MapLayerTouchEvent } from 'maplibre-gl'; import { type Writable } from 'svelte/store'; import type { LngLat } from '..'; interface MapContext { map: Writable; center: Writable; size: Writable<{ width: number; height: number; }>; zoom: Writable; } export declare const provideMapContext: (center: LngLat, zoom: number) => MapContext; /** * Provides context for a instance. Must be called within a child of this component. */ export declare const useMapLibre: () => { map: Map; mapCenter: Writable; mapSize: Writable<{ width: number; height: number; }>; mapZoom: Writable; }; /** * Allows attaching events to a instance. Must be called within a child of this component. */ export declare const useMapLibreEvent: (event: keyof MapLayerEventType | 'move' | 'resize', listener: (ev: MapLayerMouseEvent | MapLayerTouchEvent) => void) => void; export {};