import * as React from 'react'; import type { NavigationAction, ParamListBase } from '../routers'; import type { NavigationHelpers } from './types'; export type ListenerMap = { focus: FocusedNavigationListener; }; export type AddListener = (type: T, listener: ListenerMap[T]) => void; export type FocusedNavigationCallback = (navigation: NavigationHelpers) => T; export type FocusedNavigationListener = (callback: FocusedNavigationCallback) => { handled: boolean; result: T; }; /** * Context which holds the required helpers needed to build nested navigators. */ export declare const NavigationBuilderContext: React.Context<{ handleAction: (action: NavigationAction, originKey?: string) => void; resetNavigator: (stateKey: string, routerType: string | undefined) => void; addListener?: AddListener; }>;