import { EventListenerStatus as BaseStatus, EventListenerActions } from './createEventListenerComposable'; import { Nullable, GeolocateEventTypes } from '../../types'; import { MaybeRef } from 'vue'; import { GeolocateControl } from 'maplibre-gl'; export { BaseStatus as GeolocateEventListenerStatus }; /** `T` is inferred from `event`, so a `'geolocate'` handler receives a * `GeolocateSuccess` rather than the union that also includes the error type. */ interface GeolocateEventListenerProps { geolocate: MaybeRef>; event: T; on: (e: GeolocateEventTypes[T]) => void; debug?: boolean; once?: boolean; } interface GeolocateEventListenerActions extends EventListenerActions { } /** * Composable for managing MapLibre GL Geolocate Control Event Listeners */ export declare function useGeolocateEventListener(props: GeolocateEventListenerProps): GeolocateEventListenerActions;