import type { TransitionFunction } from 'react'; import type { RouteProps } from '../isomorphic-utils/route-path.js'; export type ChangeRouteOptions = { shouldScroll: boolean; adopt?: Promise>> | undefined; refetch?: boolean; history: 'push' | 'replace' | null; url?: URL | undefined; instant?: boolean | undefined; follows?: number | undefined; pendingTransition?: ((fn: TransitionFunction) => void) | undefined; onSuperseded?: (() => void) | undefined; }; export type ChangeRoute = (route: RouteProps, options: ChangeRouteOptions) => Promise; export declare const RouterContext: import("react").Context<{ route: RouteProps; changeRoute: ChangeRoute; getElements?: () => Record; isCurrentRoute?: (source: Readonly>) => boolean; } | null>; export declare function dispatchChangeRoute(changeRoute: ChangeRoute, route: RouteProps, options: ChangeRouteOptions, startTransitionFn?: (fn: TransitionFunction) => void): Promise;