import type { NavigationAction, NavigationState, Router } from '@react-navigation/routers'; declare type Options = { router: Router; getState: () => NavigationState; setState: (state: NavigationState) => void; key?: string; }; /** * Hook to handle focus actions for a route. * Focus action needs to be treated specially, coz when a nested route is focused, * the parent navigators also needs to be focused. */ export default function useOnRouteFocus({ router, getState, key: sourceRouteKey, setState, }: Options): (key: string) => void; export {};