import { NavigationAction, NavigationState, ParamListBase, Router } from '@react-navigation/routers'; import type { NavigationHelpers, NavigationProp } from './types'; import type { NavigationEventEmitter } from './useEventEmitter'; declare type Options> = { state: State; getState: () => State; navigation: NavigationHelpers & Partial>; setOptions: (cb: (options: Record) => Record) => void; router: Router; emitter: NavigationEventEmitter; }; declare type NavigationCache> = Record>; /** * Hook to cache navigation objects for each screen in the navigator. * It's important to cache them to make sure navigation objects don't change between renders. * This lets us apply optimizations like `React.memo` to minimize re-rendering screens. */ export default function useNavigationCache>({ state, getState, navigation, setOptions, router, emitter, }: Options): NavigationCache; export {}; //# sourceMappingURL=useNavigationCache.d.ts.map