import type { Visibility, Layout, BuildInLayout } from './Route'; import type { NavigationItem } from './Options'; import { ResultType } from './Navigation'; export declare const NavigationContext: import("react").Context; interface NavigationState { params: { readonly [index: string]: any; }; } interface PropsType { [index: string]: any; } export interface Navigator { } export declare class Navigator implements Navigator { sceneId: string; moduleName?: string | undefined; static of(sceneId: string): Navigator; static unmount: (sceneId: string) => void; static find(moduleName: string): Promise; static current(): Promise; constructor(sceneId: string, moduleName?: string | undefined); visibility: Visibility; readonly state: NavigationState; setParams: (params: { [index: string]: any; }) => void; push: (moduleName: string, props?: P, options?: NavigationItem) => Promise<[number, T]>; pushLayout: (layout: BuildInLayout | Layout) => Promise<[number, T]>; pop: () => Promise; popTo: (moduleName: string, inclusive?: boolean) => Promise; popToRoot: () => Promise; redirectTo:

(moduleName: string, props?: P, options?: NavigationItem) => Promise; present: (moduleName: string, props?: P, options?: NavigationItem) => Promise<[number, T]>; presentLayout: (layout: BuildInLayout | Layout) => Promise<[number, T]>; dismiss: () => Promise; showModal: (moduleName: string, props?: P, options?: NavigationItem) => Promise<[number, T]>; showModalLayout: (layout: BuildInLayout | Layout) => Promise<[number, T]>; hideModal: () => Promise; setResult: (resultCode: number, data?: T) => void; switchTab: (index: number, popToRoot?: boolean) => Promise; toggleMenu: () => Promise; openMenu: () => Promise; closeMenu: () => Promise; isStackRoot: () => Promise; } export {};