import { type ReactNavigationContainerRef, type ReactNavigationScreenMapper } from "./react-navigation-screen-observer.js"; import { type ScreenTrackingErrorHandler } from "./screen-tracking.js"; export type { ReactNavigationContainerRef, ReactNavigationRoute, ReactNavigationScreen, } from "./react-navigation-screen-observer.js"; export type ReactNavigationScreenTrackingOptions = { /** * Maps an active route to a stable screen name and safe event properties. * Return `null` to ignore a route. */ toScreen?: ReactNavigationScreenMapper; /** Receives rejected `screen()` calls. */ onError?: ScreenTrackingErrorHandler; }; /** * Reports the active React Navigation route through `client.screen()`. * * Mount once below `GetUserFeedbackProvider` and pass the same ref used by the * root navigation container. Consecutive notifications for the same route * occurrence are ignored. */ export declare function useReactNavigationScreenTracking(navigationRef: ReactNavigationContainerRef, options?: ReactNavigationScreenTrackingOptions): void;