import type { Unstable_RscEnhancer } from 'waku/minimal/client'; import type { RouteProps } from '../isomorphic-utils/route-path.js'; export declare const ROUTER_STATE_ID: unique symbol; export declare const serverRedirectEnhancer: Unstable_RscEnhancer; export type RouterState = { readonly url: string; readonly requested: readonly [path: string, query: string]; readonly history: 'push' | 'replace' | null; readonly scroll: { readonly pathChanged: boolean; } | null; readonly follows: number; readonly failedFrom?: RouteProps; readonly originalState?: RouterState; }; type InstantRouterState = { readonly state: RouterState; readonly slotIds: ReadonlySet; }; export declare function createInstantRouterState(state: RouterState, elements: Record): InstantRouterState; export declare function getRouterState(elements: Record): RouterState | undefined; export declare function getInstantSlotIds(elements: Record): ReadonlySet | undefined; export declare function createRouterState(route: RouteProps, url: URL, options: { history: 'push' | 'replace' | null; scroll: boolean; pathChanged: boolean; follows: number; }): RouterState; export declare function resolveServerRedirect(elements: Record, routerState: RouterState, fallbackPath: string): { route: RouteProps; url: URL; }; export declare function getSettledRoute(elements: Record, fallback: RouteProps): RouteProps; export {};