type Sender = { send: (event: string, data: Record) => void; trackScreenView: (screenName: string) => void; }; declare function setAutoCaptureTracker(sender: Sender): void; /** * Pass directly to NavigationContainer's onStateChange prop. * Fires SCREEN_VIEW + TIME_SPENT automatically on every navigation. * * @example * import { onNohmoStateChange } from 'nohmo/react-native/autocapture' * */ declare function onNohmoStateChange(state: any): void; /** * Pass to NavigationContainer's onReady prop to also capture the initial screen. * Requires passing your navigationRef so the current route can be read. * * @example * import { onNohmoStateChange, makeNohmoReadyHandler } from 'nohmo/react-native/autocapture' * */ declare function makeNohmoReadyHandler(navigationRef: { current: { getCurrentRoute: () => { name: string; } | undefined; } | null; }): () => void; /** * Injected by the Nohmo Babel plugin around every onPress / onLongPress. * Fires a PRESS or LONG_PRESS event then calls the original handler. * * De-duplication: design-system buttons (e.g.