import maplibregl from 'maplibre-gl';
export declare function generateLayerID(): string;
export declare function generateSourceID(): string;
/**
 * Set an event listener on an Evented object, and return a function that will remove the listener.
 *
 * Intended to be used within the $effect rune.
 */
export declare function resetEventListener(evented: maplibregl.Evented | null | undefined, type: string, listener: maplibregl.Listener | undefined): () => void;
/**
 * Set a Layer event listener on the Map object, and return a function that will remove the listener.
 *
 * Intended to be used within the $effect rune.
 */
export declare function resetLayerEventListener(map: maplibregl.Map | null, type: keyof maplibregl.MapLayerEventType, layer: string, listener: maplibregl.Listener | undefined): () => void;
export declare function formatLngLat(target: maplibregl.LngLatLike, lnglat: maplibregl.LngLat): maplibregl.LngLatLike;
