import type { ExpoRouter } from './interfaces/router'; type SearchParams = Record; export declare function useRootNavigationState(): import("./fork/getStateFromPath").ResultState; export declare function useRouteInfo(): import("./LocationProvider").UrlObject; /** @deprecated use `useNavigationContainerRef()` instead, which returns a React ref. */ export declare function useRootNavigation(): import("@react-navigation/core").NavigationContainerRef | null; /** @return the root `` ref for the app. The `ref.current` may be `null` if the `` hasn't mounted yet. */ export declare function useNavigationContainerRef(): import("@react-navigation/core").NavigationContainerRefWithCurrent; export declare function useRouter(): ExpoRouter.Router; /** * @private * @returns the current global pathname with query params attached. This may change in the future to include the hostname from a predefined universal link, i.e. `/foobar?hey=world` becomes `https://acme.dev/foobar?hey=world` */ export declare function useUnstableGlobalHref(): string; /** * Get a list of selected file segments for the currently selected route. Segments are not normalized, so they will be the same as the file path. e.g. /[id]?id=normal -> ["[id]"] * * `useSegments` can be typed using an abstract. * Consider the following file structure, and strictly typed `useSegments` function: * * ```md * - app * - [user] * - index.js * - followers.js * - settings.js * ``` * This can be strictly typed using the following abstract: * * ```ts * const [first, second] = useSegments<['settings'] | ['[user]'] | ['[user]', 'followers']>() * ``` */ export declare function useSegments(): TSegments; /** @returns global selected pathname without query parameters. */ export declare function usePathname(): string; /** * Get the globally selected query parameters, including dynamic path segments. This function will update even when the route is not focused. * Useful for analytics or other background operations that don't draw to the screen. * * When querying search params in a stack, opt-towards using `useLocalSearchParams` as these will only * update when the route is focused. * * @see `useLocalSearchParams` */ export declare function useGlobalSearchParams(): Partial; /** * Returns the URL search parameters for the contextually focused route. e.g. `/acme?foo=bar` -> `{ foo: "bar" }`. * This is useful for stacks where you may push a new screen that changes the query parameters. * * To observe updates even when the invoking route is not focused, use `useGlobalSearchParams()`. */ export declare function useLocalSearchParams(): Partial; export {}; //# sourceMappingURL=hooks.d.ts.map