/** Structural subset of react-navigation's NavigationContainerRef — no dependency on the lib. */ export interface NavigationContainerLike { addListener(type: 'state', callback: () => void): unknown; getCurrentRoute?(): { name?: string; } | undefined; } type RefLike = NavigationContainerLike | { current: NavigationContainerLike | null; }; /** * Wire Noibu page boundaries to react-navigation: reports the current route immediately and every * distinct route change after (`Noibu.trackNavigation(routeName)`). Pass the container ref * (`createNavigationContainerRef()` / the `NavigationContainer` ref). Returns an unsubscribe. * * Alternative with no wiring: `autoTrackNavigation: true` in NoibuConfig (native Activity/Fragment * boundaries — coarser for single-Activity RN apps). */ export declare function registerNavigationContainer(container: RefLike, onNavigate?: (routeName: string) => void): () => void; /** Hook form of [registerNavigationContainer] — call once near your NavigationContainer. */ export declare function useNoibuNavigation(container: RefLike): void; export {};