import { NavigationContainerRefWithCurrent, NavigationState, PartialState, useStateForPath } from '@react-navigation/native'; import { ComponentType } from 'react'; import { RouteNode } from '../Route'; import { ExpoLinkingOptions, LinkingConfigOptions } from '../getLinkingConfig'; import { RedirectConfig } from '../getRoutesCore'; import { UrlObject } from './routeInfo'; import { RequireContext, type Href } from '../types'; import { type LinkToOptions } from './routing'; export type StoreRedirects = readonly [RegExp, RedirectConfig, boolean]; export type ReactNavigationState = NavigationState | PartialState; export type FocusedRouteState = NonNullable>; export type RouterStore = typeof store; export declare const store: { shouldShowTutorial(): boolean; readonly state: ReactNavigationState | undefined; readonly navigationRef: NavigationContainerRefWithCurrent; readonly routeNode: RouteNode | null; getRouteInfo(): UrlObject; readonly redirects: StoreRedirects[]; readonly rootComponent: ComponentType; getStateForHref(href: Href, options?: LinkToOptions): (Partial[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true; routes: import("@react-navigation/native").PartialRoute>[]; }> & { state?: Partial[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true; routes: import("@react-navigation/native").PartialRoute>[]; }> & /*elided*/ any; }) | undefined; readonly linking: ExpoLinkingOptions | undefined; setFocusedState(state: FocusedRouteState): void; onReady(): void; assertIsReady(): void; }; export declare function useStore(context: RequireContext, linkingConfigOptions: LinkingConfigOptions, serverUrl?: string): { shouldShowTutorial(): boolean; readonly state: ReactNavigationState | undefined; readonly navigationRef: NavigationContainerRefWithCurrent; readonly routeNode: RouteNode | null; getRouteInfo(): UrlObject; readonly redirects: StoreRedirects[]; readonly rootComponent: ComponentType; getStateForHref(href: Href, options?: LinkToOptions): (Partial[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true; routes: import("@react-navigation/native").PartialRoute>[]; }> & { state?: Partial[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true; routes: import("@react-navigation/native").PartialRoute>[]; }> & /*elided*/ any; }) | undefined; readonly linking: ExpoLinkingOptions | undefined; setFocusedState(state: FocusedRouteState): void; onReady(): void; assertIsReady(): void; }; export declare function useRouteInfo(): UrlObject; //# sourceMappingURL=router-store.d.ts.map