react-router 7.7.1 → 7.8.0-pre.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +81 -5
  2. package/dist/development/browser-z32v5KVN.d.mts +46 -0
  3. package/dist/{production/chunk-K3SBCRK4.mjs → development/chunk-HSC5IU24.mjs} +177 -134
  4. package/dist/development/{chunk-K7YFBME3.js → chunk-IW6UADHO.js} +250 -187
  5. package/dist/development/{chunk-C37GKA54.mjs → chunk-SC4OUYO4.mjs} +232 -169
  6. package/dist/development/{chunk-R73PQUJU.js → chunk-Z4NNCWGU.js} +130 -130
  7. package/dist/development/{components-CjQijYga.d.mts → components-uUh0svuC.d.mts} +33 -21
  8. package/dist/{production/route-data-CqEmXQub.d.mts → development/context-DZWGFcKX.d.mts} +312 -524
  9. package/dist/development/dom-export.d.mts +16 -12
  10. package/dist/development/dom-export.d.ts +13 -8
  11. package/dist/development/dom-export.js +3 -3
  12. package/dist/development/dom-export.mjs +3 -3
  13. package/dist/{production/index-react-server-client-KLg-U4nr.d.mts → development/index-react-server-client-BUK-oRcG.d.mts} +327 -200
  14. package/dist/development/{index-react-server-client-Bi_fx8qz.d.ts → index-react-server-client-DSU6bZil.d.ts} +357 -219
  15. package/dist/development/index-react-server-client.d.mts +4 -3
  16. package/dist/development/index-react-server-client.d.ts +2 -2
  17. package/dist/development/index-react-server-client.js +4 -4
  18. package/dist/development/index-react-server-client.mjs +2 -2
  19. package/dist/development/index-react-server.d.mts +291 -70
  20. package/dist/development/index-react-server.d.ts +291 -70
  21. package/dist/development/index-react-server.js +174 -180
  22. package/dist/development/index-react-server.mjs +174 -180
  23. package/dist/development/index.d.mts +294 -86
  24. package/dist/development/index.d.ts +136 -105
  25. package/dist/development/index.js +258 -215
  26. package/dist/development/index.mjs +3 -3
  27. package/dist/development/lib/types/internal.d.mts +13 -2
  28. package/dist/development/lib/types/internal.d.ts +12 -2
  29. package/dist/development/lib/types/internal.js +1 -1
  30. package/dist/development/lib/types/internal.mjs +1 -1
  31. package/dist/development/route-data-UTmTa8an.d.mts +473 -0
  32. package/dist/{production/routeModules-BR2FO0ix.d.ts → development/routeModules-D5bppTB2.d.ts} +325 -67
  33. package/dist/production/browser-z32v5KVN.d.mts +46 -0
  34. package/dist/production/{chunk-4DGLNKXF.js → chunk-BCLZG6QW.js} +130 -130
  35. package/dist/{development/chunk-KIUJAIYX.mjs → production/chunk-KQ5567DT.mjs} +177 -134
  36. package/dist/production/{chunk-IZ57JD2V.mjs → chunk-X2NPJMV2.mjs} +232 -169
  37. package/dist/production/{chunk-7OQROU2D.js → chunk-YC2ENCM3.js} +250 -187
  38. package/dist/production/{components-CjQijYga.d.mts → components-uUh0svuC.d.mts} +33 -21
  39. package/dist/{development/route-data-CqEmXQub.d.mts → production/context-DZWGFcKX.d.mts} +312 -524
  40. package/dist/production/dom-export.d.mts +16 -12
  41. package/dist/production/dom-export.d.ts +13 -8
  42. package/dist/production/dom-export.js +3 -3
  43. package/dist/production/dom-export.mjs +3 -3
  44. package/dist/{development/index-react-server-client-KLg-U4nr.d.mts → production/index-react-server-client-BUK-oRcG.d.mts} +327 -200
  45. package/dist/production/{index-react-server-client-Bi_fx8qz.d.ts → index-react-server-client-DSU6bZil.d.ts} +357 -219
  46. package/dist/production/index-react-server-client.d.mts +4 -3
  47. package/dist/production/index-react-server-client.d.ts +2 -2
  48. package/dist/production/index-react-server-client.js +4 -4
  49. package/dist/production/index-react-server-client.mjs +2 -2
  50. package/dist/production/index-react-server.d.mts +291 -70
  51. package/dist/production/index-react-server.d.ts +291 -70
  52. package/dist/production/index-react-server.js +174 -180
  53. package/dist/production/index-react-server.mjs +174 -180
  54. package/dist/production/index.d.mts +294 -86
  55. package/dist/production/index.d.ts +136 -105
  56. package/dist/production/index.js +258 -215
  57. package/dist/production/index.mjs +3 -3
  58. package/dist/production/lib/types/internal.d.mts +13 -2
  59. package/dist/production/lib/types/internal.d.ts +12 -2
  60. package/dist/production/lib/types/internal.js +1 -1
  61. package/dist/production/lib/types/internal.mjs +1 -1
  62. package/dist/production/route-data-UTmTa8an.d.mts +473 -0
  63. package/dist/{development/routeModules-BR2FO0ix.d.ts → production/routeModules-D5bppTB2.d.ts} +325 -67
  64. package/package.json +1 -1
  65. package/dist/development/browser-7LYX59NK.d.mts +0 -226
  66. package/dist/production/browser-7LYX59NK.d.mts +0 -226
@@ -1,14 +1,13 @@
1
- import { d as Router, e as RouteModules, D as DataStrategyFunction, T as To, f as NavigateOptions, B as BlockerFunction, g as Blocker, h as SerializeFrom, i as RelativeRoutingType, a as Location, j as ParamParseKey, k as Path, l as PathPattern, m as PathMatch, U as UIMatch, n as Navigation, A as Action, o as Params, p as RouteObject, I as InitialEntry, H as HydrationState, q as IndexRouteObject, r as LoaderFunction, s as ActionFunction, t as MetaFunction, v as LinksFunction, w as NonIndexRouteObject, x as AppLoadContext, y as unstable_RouterContextProvider, z as MiddlewareEnabled, E as unstable_InitialContext, F as Equal, J as ClientActionFunction, K as ClientLoaderFunction, O as HeadersFunction, Q as ShouldRevalidateFunction, V as RouterInit, W as RouterState, X as PatchRoutesOnNavigationFunction, Y as DataRouteObject } from './routeModules-BR2FO0ix.js';
2
- export { a7 as ActionFunctionArgs, aG as ClientActionFunctionArgs, aH as ClientLoaderFunctionArgs, aC as DataRouteMatch, a8 as DataStrategyFunctionArgs, a9 as DataStrategyMatch, aa as DataStrategyResult, ac as ErrorResponse, a1 as Fetcher, ad as FormEncType, ae as FormMethod, aM as Future, _ as GetScrollPositionFunction, $ as GetScrollRestorationKeyFunction, af as HTMLFormMethod, aI as HeadersArgs, aL as HtmlLinkDescriptor, as as IDLE_BLOCKER, ar as IDLE_FETCHER, aq as IDLE_NAVIGATION, ag as LazyRouteFunction, L as LinkDescriptor, ah as LoaderFunctionArgs, aJ as MetaArgs, M as MetaDescriptor, a2 as NavigationStates, aD as Navigator, aK as PageLinkDescriptor, aE as PatchRoutesOnNavigationFunctionArgs, aj as PathParam, ak as RedirectFunction, a6 as RevalidationState, aF as RouteMatch, a5 as RouterFetchOptions, a4 as RouterNavigateOptions, a3 as RouterSubscriber, am as ShouldRevalidateFunctionArgs, Z as StaticHandler, a0 as StaticHandlerContext, aS as UNSAFE_DataRouterContext, aT as UNSAFE_DataRouterStateContext, ab as UNSAFE_DataWithResponseInit, aR as UNSAFE_ErrorResponseImpl, aU as UNSAFE_FetchersContext, aV as UNSAFE_LocationContext, aW as UNSAFE_NavigationContext, aX as UNSAFE_RouteContext, aY as UNSAFE_ViewTransitionContext, aO as UNSAFE_createBrowserHistory, aQ as UNSAFE_createRouter, aP as UNSAFE_invariant, ao as createPath, at as data, au as generatePath, av as isRouteErrorResponse, aw as matchPath, ax as matchRoutes, ap as parsePath, ay as redirect, az as redirectDocument, aA as replace, aB as resolvePath, ai as unstable_MiddlewareFunction, al as unstable_RouterContext, aN as unstable_SerializesTo, an as unstable_createContext } from './routeModules-BR2FO0ix.js';
3
- import { A as AssetsManifest, E as EntryContext, F as FutureConfig, R as RouteComponentType, H as HydrateFallbackType, a as ErrorBoundaryType, S as ServerBuild } from './index-react-server-client-Bi_fx8qz.js';
4
- export { h as Await, b as AwaitProps, V as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, ar as DiscoverBehavior, y as FetcherFormProps, K as FetcherSubmitFunction, a9 as FetcherSubmitOptions, Q as FetcherWithComponents, _ as Form, z as FormProps, as as HandleDataRequestFunction, at as HandleDocumentRequestFunction, au as HandleErrorFunction, W as HashRouter, t as HashRouterProps, u as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, X as Link, v as LinkProps, am as Links, i as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, al as Meta, Z as NavLink, w as NavLinkProps, x as NavLinkRenderProps, j as Navigate, N as NavigateProps, k as Outlet, O as OutletProps, aa as ParamKeyValuePair, P as PathRouteProps, aq as PrefetchBehavior, ao as PrefetchPageLinks, l as Route, d as RouteProps, m as Router, e as RouterProps, n as RouterProvider, f as RouterProviderProps, o as Routes, g as RoutesProps, an as Scripts, ap as ScriptsProps, $ as ScrollRestoration, C as ScrollRestorationProps, av as ServerEntryModule, G as SetURLSearchParams, aj as StaticRouter, af as StaticRouterProps, ak as StaticRouterProvider, ag as StaticRouterProviderProps, J as SubmitFunction, ab as SubmitOptions, ad as SubmitTarget, aE as UNSAFE_FrameworkContext, ay as UNSAFE_WithComponentProps, aC as UNSAFE_WithErrorBoundaryProps, aA as UNSAFE_WithHydrateFallbackProps, aF as UNSAFE_createClientRoutes, aG as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aw as UNSAFE_hydrationRouteProperties, ax as UNSAFE_mapRouteProperties, aH as UNSAFE_shouldHydrateRouteLoader, aI as UNSAFE_useScrollRestoration, az as UNSAFE_withComponentProps, aD as UNSAFE_withErrorBoundaryProps, aB as UNSAFE_withHydrateFallbackProps, ac as URLSearchParamsInit, T as createBrowserRouter, U as createHashRouter, p as createMemoryRouter, q as createRoutesFromChildren, r as createRoutesFromElements, ae as createSearchParams, ah as createStaticHandler, ai as createStaticRouter, s as renderMatches, Y as unstable_HistoryRouter, a7 as unstable_usePrompt, a6 as useBeforeUnload, a4 as useFetcher, a5 as useFetchers, a3 as useFormAction, a0 as useLinkClickHandler, a1 as useSearchParams, a2 as useSubmit, a8 as useViewTransitionState } from './index-react-server-client-Bi_fx8qz.js';
1
+ import { d as Router, e as RouteModules, D as DataStrategyFunction, T as To, f as NavigateOptions, B as BlockerFunction, g as Blocker, h as SerializeFrom, i as RelativeRoutingType, a as Location, j as ParamParseKey, k as Path, l as PathPattern, m as PathMatch, U as UIMatch, n as Navigation, A as Action, o as Params, p as RouteObject, I as InitialEntry, H as HydrationState, q as IndexRouteObject, r as LoaderFunction, s as ActionFunction, t as MetaFunction, v as LinksFunction, w as NonIndexRouteObject, x as AppLoadContext, y as unstable_RouterContextProvider, z as MiddlewareEnabled, E as Equal, F as ClientActionFunction, J as ClientLoaderFunction, K as HeadersFunction, O as ShouldRevalidateFunction, Q as RouterInit, V as RouterState, W as PatchRoutesOnNavigationFunction, X as DataRouteObject } from './routeModules-D5bppTB2.js';
2
+ export { a6 as ActionFunctionArgs, aF as ClientActionFunctionArgs, aG as ClientLoaderFunctionArgs, aB as DataRouteMatch, a7 as DataStrategyFunctionArgs, a8 as DataStrategyMatch, a9 as DataStrategyResult, ab as ErrorResponse, a0 as Fetcher, ac as FormEncType, ad as FormMethod, aL as Future, Z as GetScrollPositionFunction, _ as GetScrollRestorationKeyFunction, ae as HTMLFormMethod, aH as HeadersArgs, aK as HtmlLinkDescriptor, ar as IDLE_BLOCKER, aq as IDLE_FETCHER, ap as IDLE_NAVIGATION, af as LazyRouteFunction, L as LinkDescriptor, ag as LoaderFunctionArgs, aI as MetaArgs, M as MetaDescriptor, a1 as NavigationStates, aC as Navigator, aJ as PageLinkDescriptor, aD as PatchRoutesOnNavigationFunctionArgs, ai as PathParam, aj as RedirectFunction, a5 as RevalidationState, aE as RouteMatch, a4 as RouterFetchOptions, a3 as RouterNavigateOptions, a2 as RouterSubscriber, al as ShouldRevalidateFunctionArgs, Y as StaticHandler, $ as StaticHandlerContext, aR as UNSAFE_DataRouterContext, aS as UNSAFE_DataRouterStateContext, aa as UNSAFE_DataWithResponseInit, aQ as UNSAFE_ErrorResponseImpl, aT as UNSAFE_FetchersContext, aU as UNSAFE_LocationContext, aV as UNSAFE_NavigationContext, aW as UNSAFE_RouteContext, aX as UNSAFE_ViewTransitionContext, aN as UNSAFE_createBrowserHistory, aP as UNSAFE_createRouter, aO as UNSAFE_invariant, an as createPath, as as data, at as generatePath, au as isRouteErrorResponse, av as matchPath, aw as matchRoutes, ao as parsePath, ax as redirect, ay as redirectDocument, az as replace, aA as resolvePath, ah as unstable_MiddlewareFunction, ak as unstable_RouterContext, aM as unstable_SerializesTo, am as unstable_createContext } from './routeModules-D5bppTB2.js';
3
+ import { A as AssetsManifest, E as EntryContext, F as FutureConfig, R as RouteComponentType, H as HydrateFallbackType, a as ErrorBoundaryType, S as ServerBuild } from './index-react-server-client-DSU6bZil.js';
4
+ export { h as Await, b as AwaitProps, V as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, as as DiscoverBehavior, y as FetcherFormProps, K as FetcherSubmitFunction, a9 as FetcherSubmitOptions, Q as FetcherWithComponents, _ as Form, z as FormProps, at as HandleDataRequestFunction, au as HandleDocumentRequestFunction, av as HandleErrorFunction, W as HashRouter, t as HashRouterProps, u as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, X as Link, v as LinkProps, am as Links, ap as LinksProps, i as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, al as Meta, Z as NavLink, w as NavLinkProps, x as NavLinkRenderProps, j as Navigate, N as NavigateProps, k as Outlet, O as OutletProps, aa as ParamKeyValuePair, P as PathRouteProps, ar as PrefetchBehavior, ao as PrefetchPageLinks, l as Route, d as RouteProps, m as Router, e as RouterProps, n as RouterProvider, f as RouterProviderProps, o as Routes, g as RoutesProps, an as Scripts, aq as ScriptsProps, $ as ScrollRestoration, C as ScrollRestorationProps, aw as ServerEntryModule, G as SetURLSearchParams, aj as StaticRouter, af as StaticRouterProps, ak as StaticRouterProvider, ag as StaticRouterProviderProps, J as SubmitFunction, ab as SubmitOptions, ad as SubmitTarget, aF as UNSAFE_FrameworkContext, az as UNSAFE_WithComponentProps, aD as UNSAFE_WithErrorBoundaryProps, aB as UNSAFE_WithHydrateFallbackProps, aG as UNSAFE_createClientRoutes, aH as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ax as UNSAFE_hydrationRouteProperties, ay as UNSAFE_mapRouteProperties, aI as UNSAFE_shouldHydrateRouteLoader, aJ as UNSAFE_useScrollRestoration, aA as UNSAFE_withComponentProps, aE as UNSAFE_withErrorBoundaryProps, aC as UNSAFE_withHydrateFallbackProps, ac as URLSearchParamsInit, T as createBrowserRouter, U as createHashRouter, p as createMemoryRouter, q as createRoutesFromChildren, r as createRoutesFromElements, ae as createSearchParams, ah as createStaticHandler, ai as createStaticRouter, s as renderMatches, Y as unstable_HistoryRouter, a7 as unstable_usePrompt, a6 as useBeforeUnload, a4 as useFetcher, a5 as useFetchers, a3 as useFormAction, a0 as useLinkClickHandler, a1 as useSearchParams, a2 as useSubmit, a8 as useViewTransitionState } from './index-react-server-client-DSU6bZil.js';
5
5
  import * as React from 'react';
6
6
  import React__default, { ReactElement } from 'react';
7
7
  import { ParseOptions, SerializeOptions } from 'cookie';
8
8
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
9
9
  import { P as Pages } from './register-DiOIlEq5.js';
10
10
  export { a as Register } from './register-DiOIlEq5.js';
11
- import { AsyncLocalStorage } from 'node:async_hooks';
12
11
 
13
12
  declare const SingleFetchRedirectSymbol: unique symbol;
14
13
  declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined): DataStrategyFunction;
@@ -93,7 +92,7 @@ declare function useLocation(): Location;
93
92
  *
94
93
  * @public
95
94
  * @category Hooks
96
- * @returns The current {@link NavigationType} type (`"PUSH"`, `"REPLACE"`, or `"POP"`)
95
+ * @returns The current {@link NavigationType} (`"POP"`, `"PUSH"`, or `"REPLACE"`)
97
96
  */
98
97
  declare function useNavigationType(): Action;
99
98
  /**
@@ -227,7 +226,7 @@ declare function useNavigate(): NavigateFunction;
227
226
  * Often parent routes manage state or other values you want shared with child
228
227
  * routes. You can create your own [context provider](https://react.dev/learn/passing-data-deeply-with-context)
229
228
  * if you like, but this is such a common situation that it's built-into
230
- * `<Outlet />`.
229
+ * {@link Outlet | `<Outlet>`}.
231
230
  *
232
231
  * ```tsx
233
232
  * // Parent route
@@ -239,7 +238,7 @@ declare function useNavigate(): NavigateFunction;
239
238
  *
240
239
  * ```tsx
241
240
  * // Child route
242
- * import { useOutletContext } from "react-router-dom";
241
+ * import { useOutletContext } from "react-router";
243
242
  *
244
243
  * function Child() {
245
244
  * const [count, setCount] = useOutletContext();
@@ -248,21 +247,23 @@ declare function useNavigate(): NavigateFunction;
248
247
  * }
249
248
  * ```
250
249
  *
251
- * If you're using TypeScript, we recommend the parent component provide a custom
252
- * hook for accessing the context value. This makes it easier for consumers to
253
- * get nice typings, control consumers, and know who's consuming the context value.
250
+ * If you're using TypeScript, we recommend the parent component provide a
251
+ * custom hook for accessing the context value. This makes it easier for
252
+ * consumers to get nice typings, control consumers, and know who's consuming
253
+ * the context value.
254
254
  *
255
255
  * Here's a more realistic example:
256
256
  *
257
- * ```tsx filename=src/routes/dashboard.tsx lines=[13,19]
258
- * import * as React from "react";
257
+ * ```tsx filename=src/routes/dashboard.tsx lines=[14,20]
258
+ * import { useState } from "react";
259
+ * import { Outlet, useOutletContext } from "react-router";
260
+ *
259
261
  * import type { User } from "./types";
260
- * import { Outlet, useOutletContext } from "react-router-dom";
261
262
  *
262
263
  * type ContextType = { user: User | null };
263
264
  *
264
265
  * export default function Dashboard() {
265
- * const [user, setUser] = React.useState<User | null>(null);
266
+ * const [user, setUser] = useState<User | null>(null);
266
267
  *
267
268
  * return (
268
269
  * <div>
@@ -722,22 +723,23 @@ declare function useAsyncError(): unknown;
722
723
  * - `blocked` - the blocker has prevented a navigation
723
724
  * - `proceeding` - the blocker is proceeding through from a blocked navigation
724
725
  * - **`location`**
725
- * - When in a `blocked` state, this represents the {@link Location} to which we
726
- * blocked a navigation. When in a `proceeding` state, this is the location
727
- * being navigated to after a `blocker.proceed()` call.
726
+ * - When in a `blocked` state, this represents the {@link Location} to which
727
+ * we blocked a navigation. When in a `proceeding` state, this is the
728
+ * location being navigated to after a `blocker.proceed()` call.
728
729
  * - **`proceed()`**
729
- * - When in a `blocked` state, you may call `blocker.proceed()` to proceed to the
730
- * blocked location.
730
+ * - When in a `blocked` state, you may call `blocker.proceed()` to proceed to
731
+ * the blocked location.
731
732
  * - **`reset()`**
732
- * - When in a `blocked` state, you may call `blocker.reset()` to return the blocker
733
- * back to an `unblocked` state and leave the user at the current location.
733
+ * - When in a `blocked` state, you may call `blocker.reset()` to return the
734
+ * blocker to an `unblocked` state and leave the user at the current
735
+ * location.
734
736
  *
735
737
  * @example
736
738
  * // Boolean version
737
- * const blocker = useBlocker(value !== "");
739
+ * let blocker = useBlocker(value !== "");
738
740
  *
739
741
  * // Function version
740
- * const blocker = useBlocker(
742
+ * let blocker = useBlocker(
741
743
  * ({ currentLocation, nextLocation, historyAction }) =>
742
744
  * value !== "" &&
743
745
  * currentLocation.pathname !== nextLocation.pathname
@@ -819,25 +821,37 @@ declare function useAsyncError(): unknown;
819
821
  */
820
822
  declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
821
823
 
824
+ /**
825
+ * @category Types
826
+ */
822
827
  interface ServerRouterProps {
828
+ /**
829
+ * The entry context containing the manifest, route modules, and other data
830
+ * needed for rendering.
831
+ */
823
832
  context: EntryContext;
833
+ /**
834
+ * The URL of the request being handled.
835
+ */
824
836
  url: string | URL;
837
+ /**
838
+ * An optional `nonce` for [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP)
839
+ * compliance, used to allow inline scripts to run safely.
840
+ */
825
841
  nonce?: string;
826
842
  }
827
843
  /**
828
- * The server entry point for a React Router app in Framework Mode. This component
829
- * is used to generate the HTML in the response from the server.
830
- * See [`entry.server.tsx`](../api/framework-conventions/entry.server.tsx).
844
+ * The server entry point for a React Router app in Framework Mode. This
845
+ * component is used to generate the HTML in the response from the server. See
846
+ * [`entry.server.tsx`](../framework-conventions/entry.server.tsx).
831
847
  *
832
848
  * @public
833
849
  * @category Framework Routers
834
850
  * @mode framework
835
851
  * @param props Props
836
- * @param props.context The entry context containing the manifest, route modules,
837
- * and other data needed for rendering.
838
- * @param props.url The URL of the request being handled.
839
- * @param props.nonce An optional nonce for Content Security Policy (CSP) compliance,
840
- * used to allow inline scripts to run safely.
852
+ * @param {ServerRouterProps.context} props.context n/a
853
+ * @param {ServerRouterProps.nonce} props.nonce n/a
854
+ * @param {ServerRouterProps.url} props.url n/a
841
855
  * @returns A React element that represents the server-rendered application.
842
856
  */
843
857
  declare function ServerRouter({ context, url, nonce, }: ServerRouterProps): ReactElement;
@@ -952,7 +966,7 @@ type IsCookieFunction = (object: any) => object is Cookie;
952
966
  */
953
967
  declare const isCookie: IsCookieFunction;
954
968
 
955
- type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? unstable_InitialContext : AppLoadContext) => Promise<Response>;
969
+ type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext) => Promise<Response>;
956
970
  type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
957
971
  declare const createRequestHandler: CreateRequestHandlerFunction;
958
972
 
@@ -1149,12 +1163,6 @@ type ToArgs<Params extends Record<string, string | undefined>> = Equal<Params, {
1149
1163
  */
1150
1164
  declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
1151
1165
 
1152
- type ServerContext = {
1153
- redirect?: Response;
1154
- };
1155
- declare global {
1156
- var ___reactRouterServerStorage___: AsyncLocalStorage<ServerContext> | undefined;
1157
- }
1158
1166
  type RSCRouteConfigEntryBase = {
1159
1167
  action?: ActionFunction;
1160
1168
  clientAction?: ClientActionFunction;
@@ -1252,8 +1260,11 @@ type DecodeReplyFunction = (reply: FormData | string, { temporaryReferences }: {
1252
1260
  }) => Promise<unknown[]>;
1253
1261
  type LoadServerActionFunction = (id: string) => Promise<Function>;
1254
1262
  /**
1255
- * Matches the given routes to a Request and returns a RSC Response encoding an
1256
- * `RSCPayload` for consumption by a RSC enabled client router.
1263
+ * Matches the given routes to a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1264
+ * and returns an [RSC](https://react.dev/reference/rsc/server-components)
1265
+ * [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1266
+ * encoding an {@link unstable_RSCPayload} for consumption by an [RSC](https://react.dev/reference/rsc/server-components)
1267
+ * enabled client router.
1257
1268
  *
1258
1269
  * @example
1259
1270
  * import {
@@ -1290,27 +1301,33 @@ type LoadServerActionFunction = (id: string) => Promise<Function>;
1290
1301
  * @mode data
1291
1302
  * @param opts Options
1292
1303
  * @param opts.basename The basename to use when matching the request.
1304
+ * @param opts.createTemporaryReferenceSet A function that returns a temporary
1305
+ * reference set for the request, used to track temporary references in the [RSC](https://react.dev/reference/rsc/server-components)
1306
+ * stream.
1293
1307
  * @param opts.decodeAction Your `react-server-dom-xyz/server`'s `decodeAction`
1294
1308
  * function, responsible for loading a server action.
1309
+ * @param opts.decodeFormState A function responsible for decoding form state for
1310
+ * progressively enhanceable forms with React's [`useActionState`](https://react.dev/reference/react/useActionState)
1311
+ * using your `react-server-dom-xyz/server`'s `decodeFormState`.
1295
1312
  * @param opts.decodeReply Your `react-server-dom-xyz/server`'s `decodeReply`
1296
1313
  * function, used to decode the server function's arguments and bind them to the
1297
1314
  * implementation for invocation by the router.
1298
- * @param opts.decodeFormState A function responsible for decoding form state for
1299
- * progressively enhanceable forms with `useActionState` using your
1300
- * `react-server-dom-xyz/server`'s `decodeFormState`.
1301
1315
  * @param opts.generateResponse A function responsible for using your
1302
- * `renderToReadableStream` to generate a Response encoding the `RSCPayload`.
1316
+ * `renderToReadableStream` to generate a [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1317
+ * encoding the {@link unstable_RSCPayload}.
1303
1318
  * @param opts.loadServerAction Your `react-server-dom-xyz/server`'s
1304
1319
  * `loadServerAction` function, used to load a server action by ID.
1305
- * @param opts.request The request to match against.
1306
- * @param opts.requestContext An instance of `unstable_RouterContextProvider`
1307
- * that should be created per request, to be passed to loaders, actions and middleware.
1308
- * @param opts.routes Your route definitions.
1309
- * @param opts.createTemporaryReferenceSet A function that returns a temporary
1310
- * reference set for the request, used to track temporary references in the RSC stream.
1311
1320
  * @param opts.onError An optional error handler that will be called with any
1312
1321
  * errors that occur during the request processing.
1313
- * @returns A Response that contains the RSC data for hydration.
1322
+ * @param opts.request The [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1323
+ * to match against.
1324
+ * @param opts.requestContext An instance of {@link unstable_RouterContextProvider}
1325
+ * that should be created per request, to be passed to [`action`](../../start/data/route-object#action)s,
1326
+ * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
1327
+ * @param opts.routes Your {@link unstable_RSCRouteConfigEntry | route definitions}.
1328
+ * @returns A [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1329
+ * that contains the [RSC](https://react.dev/reference/rsc/server-components)
1330
+ * data for hydration.
1314
1331
  */
1315
1332
  declare function matchRSCServerRequest({ createTemporaryReferenceSet, basename, decodeReply, requestContext, loadServerAction, decodeAction, decodeFormState, onError, request, routes, generateResponse, }: {
1316
1333
  createTemporaryReferenceSet: () => unknown;
@@ -1362,10 +1379,12 @@ type EncodeReplyFunction = (args: unknown[], options: {
1362
1379
  * @param opts.createFromReadableStream Your `react-server-dom-xyz/client`'s
1363
1380
  * `createFromReadableStream`. Used to decode payloads from the server.
1364
1381
  * @param opts.createTemporaryReferenceSet A function that creates a temporary
1365
- * reference set for the RSC payload.
1382
+ * reference set for the [RSC](https://react.dev/reference/rsc/server-components)
1383
+ * payload.
1366
1384
  * @param opts.encodeReply Your `react-server-dom-xyz/client`'s `encodeReply`.
1367
1385
  * Used when sending payloads to the server.
1368
- * @param opts.fetch Optional fetch implementation. Defaults to global `fetch`.
1386
+ * @param opts.fetch Optional [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
1387
+ * implementation. Defaults to global [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch).
1369
1388
  * @returns A function that can be used to call server actions.
1370
1389
  */
1371
1390
  declare function createCallServer({ createFromReadableStream, createTemporaryReferenceSet, encodeReply, fetch: fetchImplementation, }: {
@@ -1375,8 +1394,10 @@ declare function createCallServer({ createFromReadableStream, createTemporaryRef
1375
1394
  fetch?: (request: Request) => Promise<Response>;
1376
1395
  }): (id: string, args: unknown[]) => Promise<unknown>;
1377
1396
  /**
1378
- * Props for the `unstable_RSCHydratedRouter` component.
1397
+ * Props for the {@link unstable_RSCHydratedRouter} component.
1398
+ *
1379
1399
  * @name unstable_RSCHydratedRouterProps
1400
+ * @category Types
1380
1401
  */
1381
1402
  interface RSCHydratedRouterProps {
1382
1403
  /**
@@ -1385,27 +1406,29 @@ interface RSCHydratedRouterProps {
1385
1406
  */
1386
1407
  createFromReadableStream: BrowserCreateFromReadableStreamFunction;
1387
1408
  /**
1388
- * Optional fetch implementation. Defaults to global `fetch`.
1409
+ * Optional fetch implementation. Defaults to global [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch).
1389
1410
  */
1390
1411
  fetch?: (request: Request) => Promise<Response>;
1391
1412
  /**
1392
- * The decoded `RSCPayload` to hydrate.
1413
+ * The decoded {@link unstable_RSCPayload} to hydrate.
1393
1414
  */
1394
1415
  payload: RSCPayload;
1395
1416
  /**
1396
- * `eager` or `lazy` - Determines if links are eagerly discovered, or delayed
1397
- * until clicked.
1417
+ * `"eager"` or `"lazy"` - Determines if links are eagerly discovered, or
1418
+ * delayed until clicked.
1398
1419
  */
1399
1420
  routeDiscovery?: "eager" | "lazy";
1400
1421
  /**
1401
- * A function that returns an `unstable_InitialContext` object
1402
- * (`Map<RouterContext, unknown>`), for use in client loaders, actions and
1403
- * middleware.
1422
+ * A function that returns an {@link unstable_RouterContextProvider} instance
1423
+ * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
1424
+ * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
1425
+ * This function is called to generate a fresh `context` instance on each
1426
+ * navigation or fetcher call.
1404
1427
  */
1405
1428
  unstable_getContext?: RouterInit["unstable_getContext"];
1406
1429
  }
1407
1430
  /**
1408
- * Hydrates a server rendered `RSCPayload` in the browser.
1431
+ * Hydrates a server rendered {@link unstable_RSCPayload} in the browser.
1409
1432
  *
1410
1433
  * @example
1411
1434
  * import { startTransition, StrictMode } from "react";
@@ -1416,25 +1439,19 @@ interface RSCHydratedRouterProps {
1416
1439
  * } from "react-router";
1417
1440
  * import type { unstable_RSCPayload as RSCPayload } from "react-router";
1418
1441
  *
1419
- * createFromReadableStream(getRSCStream()).then(
1420
- * (payload: RSCServerPayload) => {
1421
- * startTransition(async () => {
1422
- * hydrateRoot(
1423
- * document,
1424
- * <StrictMode>
1425
- * <RSCHydratedRouter
1426
- * createFromReadableStream={
1427
- * createFromReadableStream
1428
- * }
1429
- * payload={payload}
1430
- * />
1431
- * </StrictMode>,
1432
- * {
1433
- * formState: await getFormState(payload),
1434
- * }
1435
- * );
1436
- * });
1437
- * }
1442
+ * createFromReadableStream(getRSCStream()).then((payload) =>
1443
+ * startTransition(async () => {
1444
+ * hydrateRoot(
1445
+ * document,
1446
+ * <StrictMode>
1447
+ * <RSCHydratedRouter
1448
+ * createFromReadableStream={createFromReadableStream}
1449
+ * payload={payload}
1450
+ * />
1451
+ * </StrictMode>,
1452
+ * { formState: await getFormState(payload) },
1453
+ * );
1454
+ * }),
1438
1455
  * );
1439
1456
  *
1440
1457
  * @name unstable_RSCHydratedRouter
@@ -1444,18 +1461,20 @@ interface RSCHydratedRouterProps {
1444
1461
  * @param props Props
1445
1462
  * @param {unstable_RSCHydratedRouterProps.createFromReadableStream} props.createFromReadableStream n/a
1446
1463
  * @param {unstable_RSCHydratedRouterProps.fetch} props.fetch n/a
1464
+ * @param {unstable_RSCHydratedRouterProps.unstable_getContext} props.unstable_getContext n/a
1447
1465
  * @param {unstable_RSCHydratedRouterProps.payload} props.payload n/a
1448
1466
  * @param {unstable_RSCHydratedRouterProps.routeDiscovery} props.routeDiscovery n/a
1449
- * @param {unstable_RSCHydratedRouterProps.unstable_getContext} props.unstable_getContext n/a
1450
- * @returns A hydrated router that can be used to navigate and render routes.
1467
+ * @returns A hydrated {@link DataRouter} that can be used to navigate and
1468
+ * render routes.
1451
1469
  */
1452
1470
  declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, unstable_getContext, }: RSCHydratedRouterProps): React.JSX.Element;
1453
1471
 
1454
1472
  type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
1455
1473
  /**
1456
- * Routes the incoming request to the RSC server and appropriately proxies the
1457
- * server response for data / resource requests, or renders to HTML for a document
1458
- * request.
1474
+ * Routes the incoming [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1475
+ * to the [RSC](https://react.dev/reference/rsc/server-components) server and
1476
+ * appropriately proxies the server response for data / resource requests, or
1477
+ * renders to HTML for a document request.
1459
1478
  *
1460
1479
  * @example
1461
1480
  * import { createFromReadableStream } from "@vitejs/plugin-rsc/ssr";
@@ -1489,15 +1508,17 @@ type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) =>
1489
1508
  * @param opts Options
1490
1509
  * @param opts.createFromReadableStream Your `react-server-dom-xyz/client`'s
1491
1510
  * `createFromReadableStream` function, used to decode payloads from the server.
1492
- * @param opts.fetchServer A function that forwards a `Request` to the RSC handler
1493
- * and returns a `Promise<Response>` containing a serialized `RSCPayload`.
1494
- * @param opts.renderHTML A function that renders the `RSCPayload` to HTML, usually
1495
- * using a `<RSCStaticRouter>`.
1496
- * @param opts.request The request to route.
1511
+ * @param opts.fetchServer A function that forwards a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1512
+ * to the [RSC](https://react.dev/reference/rsc/server-components) handler
1513
+ * and returns a `Promise<Response>` containing a serialized {@link unstable_RSCPayload}.
1497
1514
  * @param opts.hydrate Whether to hydrate the server response with the RSC payload.
1498
1515
  * Defaults to `true`.
1499
- * @returns A `Response` that either contains the RSC payload for data requests, or
1500
- * renders the HTML for document requests.
1516
+ * @param opts.renderHTML A function that renders the {@link unstable_RSCPayload} to
1517
+ * HTML, usually using a {@link unstable_RSCStaticRouter | `<RSCStaticRouter>`}.
1518
+ * @param opts.request The request to route.
1519
+ * @returns A [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1520
+ * that either contains the [RSC](https://react.dev/reference/rsc/server-components)
1521
+ * payload for data requests, or renders the HTML for document requests.
1501
1522
  */
1502
1523
  declare function routeRSCServerRequest({ request, fetchServer, createFromReadableStream, renderHTML, hydrate, }: {
1503
1524
  request: Request;
@@ -1507,19 +1528,21 @@ declare function routeRSCServerRequest({ request, fetchServer, createFromReadabl
1507
1528
  hydrate?: boolean;
1508
1529
  }): Promise<Response>;
1509
1530
  /**
1510
- * Props for the `RSCStaticRouter` component.
1531
+ * Props for the {@link unstable_RSCStaticRouter} component.
1532
+ *
1511
1533
  * @name unstable_RSCStaticRouterProps
1534
+ * @category Types
1512
1535
  */
1513
1536
  interface RSCStaticRouterProps {
1514
1537
  /**
1515
- * A function that starts decoding of the `RSCPayload`. Usually passed through
1516
- * from `routeRSCServerRequest`'s `renderHTML`.
1538
+ * A function that starts decoding of the {@link unstable_RSCPayload}. Usually passed
1539
+ * through from {@link unstable_routeRSCServerRequest}'s `renderHTML`.
1517
1540
  */
1518
1541
  getPayload: () => Promise<RSCPayload>;
1519
1542
  }
1520
1543
  /**
1521
- * Pre-renders an `RSCPayload` to HTML. Usually used in `routeRSCServerRequest`'s
1522
- * `renderHTML` callback.
1544
+ * Pre-renders an {@link unstable_RSCPayload} to HTML. Usually used in
1545
+ * {@link unstable_routeRSCServerRequest}'s `renderHTML` callback.
1523
1546
  *
1524
1547
  * @example
1525
1548
  * import { createFromReadableStream } from "@vitejs/plugin-rsc/ssr";
@@ -1552,7 +1575,7 @@ interface RSCStaticRouterProps {
1552
1575
  * @mode data
1553
1576
  * @param props Props
1554
1577
  * @param {unstable_RSCStaticRouterProps.getPayload} props.getPayload n/a
1555
- * @returns A React component that renders the `RSCPayload` as HTML.
1578
+ * @returns A React component that renders the {@link unstable_RSCPayload} as HTML.
1556
1579
  */
1557
1580
  declare function RSCStaticRouter({ getPayload }: RSCStaticRouterProps): React.JSX.Element | null;
1558
1581
 
@@ -1562,7 +1585,8 @@ declare global {
1562
1585
  }
1563
1586
  }
1564
1587
  /**
1565
- * Get the prerendered RSC stream for hydration. Usually passed directly to your
1588
+ * Get the prerendered [RSC](https://react.dev/reference/rsc/server-components)
1589
+ * stream for hydration. Usually passed directly to your
1566
1590
  * `react-server-dom-xyz/client`'s `createFromReadableStream`.
1567
1591
  *
1568
1592
  * @example
@@ -1580,7 +1604,7 @@ declare global {
1580
1604
  * hydrateRoot(
1581
1605
  * document,
1582
1606
  * <StrictMode>
1583
- * <RSCHydratedRouter ...props />
1607
+ * <RSCHydratedRouter {...props} />
1584
1608
  * </StrictMode>,
1585
1609
  * {
1586
1610
  * // Options
@@ -1594,9 +1618,11 @@ declare global {
1594
1618
  * @public
1595
1619
  * @category RSC
1596
1620
  * @mode data
1597
- * @returns A `ReadableStream` that contains the RSC data for hydration.
1621
+ * @returns A [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)
1622
+ * that contains the [RSC](https://react.dev/reference/rsc/server-components)
1623
+ * data for hydration.
1598
1624
  */
1599
- declare function getRSCStream(): ReadableStream<any>;
1625
+ declare function getRSCStream(): ReadableStream;
1600
1626
 
1601
1627
  declare function RSCDefaultRootErrorBoundary({ hasRootLayout, }: {
1602
1628
  hasRootLayout: boolean;
@@ -1638,6 +1664,11 @@ declare function getHydrationData(state: {
1638
1664
  hasHydrateFallback: boolean;
1639
1665
  }, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
1640
1666
 
1667
+ /**
1668
+ * @module index
1669
+ * @mergeModuleWith react-router
1670
+ */
1671
+
1641
1672
  declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
1642
1673
 
1643
- export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, unstable_InitialContext, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, unstable_RouterContextProvider, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, getRSCStream as unstable_getRSCStream, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
1674
+ export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, unstable_RouterContextProvider, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, getRSCStream as unstable_getRSCStream, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };