UNPKG

877 B model/vnd.mts View Raw
1import * as React from 'react';
2import { R as RouterProviderProps$1 } from './lib-C1JSsICm.mjs';
3import { R as RouterInit } from './route-data-ByAYLHuM.mjs';
4
5type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
6declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
7
8interface HydratedRouterProps {
9 /**
10 * Context object to passed through to `createBrowserRouter` and made available
11 * to `clientLoader`/`clientActon` functions
12 */
13 unstable_getContext?: RouterInit["unstable_getContext"];
14}
15/**
16 * Framework-mode router component to be used in `entry.client.tsx` to hydrate a
17 * router from a `ServerRouter`
18 *
19 * @category Component Routers
20 */
21declare function HydratedRouter(props: HydratedRouterProps): React.JSX.Element;
22
23export { HydratedRouter, RouterProvider, type RouterProviderProps };