import { type RouterFactory, useNavigationBuilder } from '@react-navigation/native'; import * as React from 'react'; type NavigatorTypes = ReturnType; export declare const NavigatorContext: React.Context<{ contextKey: string; state: NavigatorTypes['state']; navigation: NavigatorTypes['navigation']; descriptors: NavigatorTypes['descriptors']; router: RouterFactory; } | null>; export type NavigatorProps = { initialRouteName?: Parameters[1]['initialRouteName']; screenOptions?: Parameters[1]['screenOptions']; children?: Parameters[1]['children']; router?: Parameters[0]; }; /** An unstyled custom navigator. Good for basic web layouts */ export declare function Navigator({ initialRouteName, screenOptions, children, router }: NavigatorProps): import("react/jsx-runtime").JSX.Element | null; export declare namespace Navigator { var Slot: typeof import("./Navigator").Slot; var useContext: typeof useNavigatorContext; var Screen: typeof import("./Screen").Screen; } export declare function useNavigatorContext(): { contextKey: string; 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 | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>; 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 | import("@react-navigation/routers").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 | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }> | import("@react-navigation/routers").PartialState & Readonly<{ params?: Readonly; }> & { state?: Readonly | import("@react-navigation/routers").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 | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>; } & import("@react-navigation/core").PrivateValueStore<[import("@react-navigation/routers").ParamListBase, unknown, unknown]> & import("@react-navigation/core").EventEmitter> & { setParams(params: Partial): void; } & Record void>; descriptors: Record | ((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 | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>) => Readonly<{ type: string; payload?: object | undefined; source?: string | undefined; target?: string | undefined; }>)): void; navigate(...args: RouteName_3 extends unknown ? [screen: RouteName_3] | [screen: RouteName_3, params: object | undefined] : never): void; navigate(options: RouteName_1_1 extends unknown ? { key: string; params?: object | undefined; merge?: boolean | undefined; } | { name: RouteName_1_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 | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }> | import("@react-navigation/routers").PartialState & Readonly<{ params?: Readonly; }> & { state?: Readonly | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>>): void; goBack(): void; isFocused(): boolean; canGoBack(): boolean; getId(): string | undefined; getParent | undefined>(id?: string | undefined): T_1; 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 | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>; } & import("@react-navigation/core").PrivateValueStore<[import("@react-navigation/routers").ParamListBase, unknown, unknown]>, "getParent"> & { getParent & Readonly<{ params?: Readonly; }> & { state?: Readonly | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>, {}, {}> | undefined>(id?: string | undefined): T_1_1; setParams(params: Partial): void; setOptions(options: Partial<{}>): void; } & import("@react-navigation/core").EventConsumer & import("@react-navigation/core").EventMapCore & Readonly<{ params?: Readonly; }> & { state?: Readonly | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>>> & import("@react-navigation/core").PrivateValueStore<[import("@react-navigation/routers").ParamListBase, string, Record]> & Record void>, import("@react-navigation/core").RouteProp>>; router: RouterFactory; }; export declare function useSlot(): JSX.Element | null; /** Renders the currently selected content. */ export declare function Slot(props: Omit): import("react/jsx-runtime").JSX.Element; export declare function QualifiedSlot(): JSX.Element | null; export declare function DefaultNavigator(): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Navigator.d.ts.map