import { DefaultRouterOptions, NavigationState, ParamListBase, PartialState, RouterFactory } from '@react-navigation/routers'; import * as React from 'react'; import { DefaultNavigatorOptions, EventMapCore, PrivateValueStore, RouteProp } from './types'; type NavigationBuilderOptions = { /** * Default options specified by the navigator. * It receives the custom options in the arguments if a function is specified. */ defaultScreenOptions?: ScreenOptions | ((props: { route: RouteProp; navigation: any; options: ScreenOptions; }) => ScreenOptions); }; /** * Hook for building navigators. * * @param createRouter Factory method which returns router object. * @param options Options object containing `children` and additional options for the router. * @returns An object containing `state`, `navigation`, `descriptors` objects. */ export default function useNavigationBuilder void>, ScreenOptions extends {}, EventMap extends Record>(createRouter: RouterFactory, options: DefaultNavigatorOptions & NavigationBuilderOptions & RouterOptions): { state: State; navigation: { dispatch(action: Readonly<{ type: string; payload?: object | undefined; source?: string | undefined; target?: string | undefined; }> | ((state: Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[] | undefined; routes: (Readonly<{ key: string; name: string; path?: string | undefined; }> & Readonly<{ params?: Readonly; }> & { state?: Readonly | PartialState> | undefined; })[]; type: string; stale: false; }>) => Readonly<{ type: string; payload?: object | undefined; source?: string | undefined; target?: string | undefined; }>)): void; navigate(...args: RouteName extends unknown ? [screen: RouteName] | [screen: RouteName, params: object | undefined] : never): void; navigate(options: RouteName_1 extends unknown ? { key: string; params?: object | undefined; merge?: boolean | undefined; } | { name: RouteName_1; key?: string | undefined; params: object | undefined; merge?: boolean | undefined; } : never): void; reset(state: Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[] | undefined; routes: (Readonly<{ key: string; name: string; path?: string | undefined; }> & Readonly<{ params?: Readonly; }> & { state?: Readonly | PartialState> | undefined; })[]; type: string; stale: false; }> | PartialState & Readonly<{ params?: Readonly; }> & { state?: Readonly | PartialState> | undefined; })[]; type: string; stale: false; }>>): void; goBack(): void; isFocused(): boolean; canGoBack(): boolean; getId(): string | undefined; getParent | undefined>(id?: string | undefined): T; getState(): Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[] | undefined; routes: (Readonly<{ key: string; name: string; path?: string | undefined; }> & Readonly<{ params?: Readonly; }> & { state?: Readonly | PartialState> | undefined; })[]; type: string; stale: false; }>; } & PrivateValueStore<[ParamListBase, unknown, unknown]> & import("./types").EventEmitter & { setParams(params: Partial): void; } & ActionHelpers; descriptors: Record | ((state: State) => Readonly<{ type: string; payload?: object | undefined; source?: string | undefined; target?: string | undefined; }>)): void; navigate(...args: RouteName extends unknown ? [screen: RouteName] | [screen: RouteName, params: object | undefined] : never): void; navigate(options: RouteName_1 extends unknown ? { key: string; params?: object | undefined; merge?: boolean | undefined; } | { name: RouteName_1; key?: string | undefined; params: object | undefined; merge?: boolean | undefined; } : never): void; reset(state: State | PartialState): void; goBack(): void; isFocused(): boolean; canGoBack(): boolean; getId(): string | undefined; getParent | undefined>(id?: string | undefined): T; getState(): State; } & PrivateValueStore<[ParamListBase, unknown, unknown]>, "getParent"> & { getParent & Readonly<{ params?: Readonly; }> & { state?: Readonly | PartialState> | undefined; })[]; type: string; stale: false; }>, {}, {}> | undefined>(id?: string | undefined): T_1; setParams(params: Partial): void; setOptions(options: Partial): void; } & import("./types").EventConsumer> & PrivateValueStore<[ParamListBase, string, EventMap]> & ActionHelpers, RouteProp>>; NavigationContent: ({ children }: { children: React.ReactNode; }) => JSX.Element; }; export {}; //# sourceMappingURL=useNavigationBuilder.d.ts.map