import { type BaseScreen, type BottomTabType, type ExtractRouteParams } from './navigationUtils'; type NavigateOptions = { /** * Run the screen's preload before navigating, so data fetching overlaps the * transition instead of starting after it. Defaults to true — a screen that * suspends without a preload renders an empty scene on native. Pass false * only when the target screen must not fetch (for example, a screen whose * preload would clobber state the caller just prepared). */ preload?: boolean; toBottomTab?: BottomTabType; /** * Escape an enclosing SplitView / TripleSplitView: push FULL-SCREEN over the * whole split via the main navigator instead of landing in the detail pane. * No-op outside a split (falls back to a normal push). */ fullScreen?: boolean; /** * Web: keep the current screen until the destination's code and preloaded * data are ready (at most the provider's `pendingMs`), then commit in a * transition. `Link` sets this; a programmatic call (after a mutation, a * redirect) commits right away unless it opts in, so a form that just saved * never lingers with a live submit button. */ waitUntilReady?: boolean; }; export default function useNavigation(): { currentRootKey: string; currentRoot: import("./navigationUtils").RootValue | undefined; preloadElement: (screen: BaseScreen) => void; preloadRoot: (rootKey: string) => void; preload: (screen: T, params: ExtractRouteParams) => Promise; pop: (dist?: number) => void; popToTop: () => void; switchRoot: (rootKey: string, preloadSetting?: boolean) => void; push: (screen: T, params: ExtractRouteParams, options?: NavigateOptions) => void; replace: (screen: T, params: ExtractRouteParams, options?: NavigateOptions) => void; resetTo: (screens: { screen: BaseScreen; params: Record; }[], options?: { preload?: boolean; waitUntilReady?: boolean; }) => void; refresh: (screen: T, params: ExtractRouteParams, options?: NavigateOptions) => void; theme: import("./theme").Theme; canNavigateBack: (dist?: number) => boolean; fluent: (rootSettings: import("./navigationUtils").FluentParams, ...fluentScreens: import("./navigationUtils").FluentScreen[]) => void; }; export {}; //# sourceMappingURL=useNavigation.d.ts.map