import type { TEvents } from '@mappedin/mappedin-js'; /** * Hook to subscribe to an event on the MapView in React Native. * * This hook uses the MapView's .on() and .off() methods to subscribe to events * on the MapView instance running in the WebView. * * Supports both MapView events (e.g., 'click', 'hover') * * @param event - The event to listen for (regular or extension event). * @param callback - The callback to call when the event is triggered. * * @category Hooks * * @example * ```tsx * useMapViewEvent('click', event => { * const { coordinate } = event; * const { latitude, longitude } = coordinate; * console.log(`Map was clicked at ${latitude}, ${longitude}`); * }); * ``` */ export declare function useMapViewEvent(event: T, callback: (payload: TEvents[T] extends { data: null; } ? TEvents[T]['data'] : TEvents[T]) => void): void; //# sourceMappingURL=use-map-view-event.d.ts.map