1 | import type { NavigationState, ParamListBase } from '@react-navigation/routers';
|
2 | declare type Selector<ParamList extends ParamListBase, T> = (state: NavigationState<ParamList>) => T;
|
3 | /**
|
4 | * Hook to get a value from the current navigation state using a selector.
|
5 | *
|
6 | * @param selector Selector function to get a value from the state.
|
7 | */
|
8 | export default function useNavigationState<ParamList extends ParamListBase, T>(selector: Selector<ParamList, T>): T;
|
9 | export {};
|
10 | //# sourceMappingURL=useNavigationState.d.ts.map |
\ | No newline at end of file |