import type { Action, ValidPaths } from './types'; /** * Registers the global dispatch function. Called by NavigationProvider on mount * so that `navigate`/`goBack`/`replace` can work outside React components. * * @param dispatch - The dispatch function from the navigation reducer. */ export declare function registerDispatch(dispatch: (action: Action) => void): void; /** Unregisters the global dispatch function. Called by NavigationProvider on unmount. */ export declare function unregisterDispatch(): void; /** * Navigates to the given path by dispatching a NAVIGATE action. * Works anywhere — no React context required. * * @param path - The path to navigate to (e.g. "/profile/123"). * @throws If called before NavigationProvider is mounted. * * @example * ```ts * navigate('/profile/123'); * ``` */ export declare function navigate(path: ValidPaths): void; /** * Goes back by popping the deepest nested stack. * Works anywhere — no React context required. * * @throws If called before NavigationProvider is mounted. * * @example * ```ts * goBack(); * ``` */ export declare function goBack(): void; /** * Replaces the current screen with the given path (go back + navigate). * Works anywhere — no React context required. * * @param path - The path to replace with (e.g. "/settings"). * @throws If called before NavigationProvider is mounted. * * @example * ```ts * replace('/settings'); * ``` */ export declare function replace(path: ValidPaths): void; //# sourceMappingURL=navigation.d.ts.map