react-router 7.7.1 → 7.8.0-pre.1

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 +87 -5
  2. package/dist/development/browser-z32v5KVN.d.mts +46 -0
  3. package/dist/development/{chunk-R73PQUJU.js → chunk-4EVDZJGM.js} +130 -130
  4. package/dist/{production/chunk-K3SBCRK4.mjs → development/chunk-I22FVTOY.mjs} +177 -134
  5. package/dist/development/{chunk-K7YFBME3.js → chunk-NGF2R4G7.js} +285 -189
  6. package/dist/development/{chunk-C37GKA54.mjs → chunk-XFFANEXU.mjs} +266 -170
  7. package/dist/development/{components-CjQijYga.d.mts → components-CuPfnyiZ.d.mts} +33 -21
  8. package/dist/{production/route-data-CqEmXQub.d.mts → development/context-DohQKLID.d.mts} +312 -525
  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/development/{index-react-server-client-Bi_fx8qz.d.ts → index-react-server-client-BzBbJLAD.d.ts} +357 -219
  14. package/dist/{production/index-react-server-client-KLg-U4nr.d.mts → development/index-react-server-client-CuajY2vy.d.mts} +327 -200
  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 -71
  20. package/dist/development/index-react-server.d.ts +291 -71
  21. package/dist/development/index-react-server.js +209 -182
  22. package/dist/development/index-react-server.mjs +209 -182
  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-CpB5xtMm.d.mts +473 -0
  32. package/dist/{production/routeModules-BR2FO0ix.d.ts → development/routeModules-qBivMBjd.d.ts} +325 -68
  33. package/dist/production/browser-z32v5KVN.d.mts +46 -0
  34. package/dist/production/{chunk-4DGLNKXF.js → chunk-4PESVXQ2.js} +130 -130
  35. package/dist/{development/chunk-KIUJAIYX.mjs → production/chunk-JJOMWYJ4.mjs} +177 -134
  36. package/dist/production/{chunk-IZ57JD2V.mjs → chunk-P2ZJHOXZ.mjs} +266 -170
  37. package/dist/production/{chunk-7OQROU2D.js → chunk-RLJ23MYZ.js} +285 -189
  38. package/dist/production/{components-CjQijYga.d.mts → components-CuPfnyiZ.d.mts} +33 -21
  39. package/dist/{development/route-data-CqEmXQub.d.mts → production/context-DohQKLID.d.mts} +312 -525
  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/production/{index-react-server-client-Bi_fx8qz.d.ts → index-react-server-client-BzBbJLAD.d.ts} +357 -219
  45. package/dist/{development/index-react-server-client-KLg-U4nr.d.mts → production/index-react-server-client-CuajY2vy.d.mts} +327 -200
  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 -71
  51. package/dist/production/index-react-server.d.ts +291 -71
  52. package/dist/production/index-react-server.js +209 -182
  53. package/dist/production/index-react-server.mjs +209 -182
  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-CpB5xtMm.d.mts +473 -0
  63. package/dist/{development/routeModules-BR2FO0ix.d.ts → production/routeModules-qBivMBjd.d.ts} +325 -68
  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,18 +1,18 @@
1
- import { R as Router, y as RouteModules, D as DataStrategyFunction, T as To, z as NavigateOptions, B as BlockerFunction, E as Blocker, J as SerializeFrom, a as RelativeRoutingType, c as Location, K as ParamParseKey, O as Path, Q as PathPattern, V as PathMatch, U as UIMatch, W as Navigation, A as Action, h as Params, f as RouteObject, I as InitialEntry, H as HydrationState, b as IndexRouteObject, m as LoaderFunction, i as ActionFunction, M as MetaFunction, l as LinksFunction, N as NonIndexRouteObject, X as AppLoadContext, u as unstable_RouterContextProvider, Y as MiddlewareEnabled, Z as unstable_InitialContext, _ as Equal, e as RouterInit, $ as RouterState, P as PatchRoutesOnNavigationFunction, a0 as DataRouteObject, j as ClientLoaderFunction } from './route-data-CqEmXQub.mjs';
2
- export { ab as ActionFunctionArgs, C as ClientActionFunction, aH as ClientActionFunctionArgs, aI as ClientLoaderFunctionArgs, aF as DataRouteMatch, ac as DataStrategyFunctionArgs, ad as DataStrategyMatch, ae as DataStrategyResult, ag as ErrorResponse, a5 as Fetcher, ah as FormEncType, ai as FormMethod, aN as Future, a2 as GetScrollPositionFunction, a3 as GetScrollRestorationKeyFunction, aj as HTMLFormMethod, aJ as HeadersArgs, k as HeadersFunction, aM as HtmlLinkDescriptor, av as IDLE_BLOCKER, au as IDLE_FETCHER, at as IDLE_NAVIGATION, L as LazyRouteFunction, o as LinkDescriptor, ak as LoaderFunctionArgs, aK as MetaArgs, q as MetaDescriptor, a6 as NavigationStates, d as Navigator, aL as PageLinkDescriptor, aG as PatchRoutesOnNavigationFunctionArgs, am as PathParam, an as RedirectFunction, aa as RevalidationState, g as RouteMatch, a9 as RouterFetchOptions, a8 as RouterNavigateOptions, a7 as RouterSubscriber, S as ShouldRevalidateFunction, ap as ShouldRevalidateFunctionArgs, a1 as StaticHandler, a4 as StaticHandlerContext, aT as UNSAFE_DataRouterContext, aU as UNSAFE_DataRouterStateContext, af as UNSAFE_DataWithResponseInit, aS as UNSAFE_ErrorResponseImpl, aV as UNSAFE_FetchersContext, aW as UNSAFE_LocationContext, aX as UNSAFE_NavigationContext, aY as UNSAFE_RouteContext, aZ as UNSAFE_ViewTransitionContext, aP as UNSAFE_createBrowserHistory, aR as UNSAFE_createRouter, aQ as UNSAFE_invariant, ar as createPath, aw as data, ax as generatePath, ay as isRouteErrorResponse, az as matchPath, aA as matchRoutes, as as parsePath, aB as redirect, aC as redirectDocument, aD as replace, aE as resolvePath, al as unstable_MiddlewareFunction, ao as unstable_RouterContext, aO as unstable_SerializesTo, aq as unstable_createContext } from './route-data-CqEmXQub.mjs';
3
- import { a as RouteComponentType, H as HydrateFallbackType, E as ErrorBoundaryType } from './components-CjQijYga.mjs';
4
- export { f as Await, A as AwaitProps, I as IndexRouteProps, L as LayoutRouteProps, g as MemoryRouter, M as MemoryRouterOpts, b as MemoryRouterProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, P as PathRouteProps, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, W as UNSAFE_WithComponentProps, v as UNSAFE_WithErrorBoundaryProps, t as UNSAFE_WithHydrateFallbackProps, q as UNSAFE_hydrationRouteProperties, s as UNSAFE_mapRouteProperties, w as UNSAFE_withComponentProps, x as UNSAFE_withErrorBoundaryProps, u as UNSAFE_withHydrateFallbackProps, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, r as renderMatches } from './components-CjQijYga.mjs';
1
+ import { R as Router, D as DataStrategyFunction, T as To, q as NavigateOptions, B as BlockerFunction, r as Blocker, a as RelativeRoutingType, c as Location, s as ParamParseKey, t as Path, v as PathPattern, w as PathMatch, U as UIMatch, x as Navigation, A as Action, h as Params, f as RouteObject, I as InitialEntry, H as HydrationState, b as IndexRouteObject, l as LoaderFunction, k as ActionFunction, N as NonIndexRouteObject, o as unstable_RouterContextProvider, M as MiddlewareEnabled, S as ShouldRevalidateFunction, e as RouterInit, y as RouterState, P as PatchRoutesOnNavigationFunction, z as DataRouteObject } from './context-DohQKLID.mjs';
2
+ export { i as ActionFunctionArgs, m as DataRouteMatch, Y as DataStrategyFunctionArgs, Z as DataStrategyMatch, _ as DataStrategyResult, $ as ErrorResponse, K as Fetcher, a0 as FormEncType, a1 as FormMethod, an as Future, G as GetScrollPositionFunction, E as GetScrollRestorationKeyFunction, a2 as HTMLFormMethod, ac as IDLE_BLOCKER, ab as IDLE_FETCHER, aa as IDLE_NAVIGATION, L as LazyRouteFunction, j as LoaderFunctionArgs, O as NavigationStates, d as Navigator, am as PatchRoutesOnNavigationFunctionArgs, a3 as PathParam, a4 as RedirectFunction, X as RevalidationState, g as RouteMatch, W as RouterFetchOptions, V as RouterNavigateOptions, Q as RouterSubscriber, a6 as ShouldRevalidateFunctionArgs, C as StaticHandler, J as StaticHandlerContext, as as UNSAFE_DataRouterContext, at as UNSAFE_DataRouterStateContext, p 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, a8 as createPath, ad as data, ae as generatePath, af as isRouteErrorResponse, ag as matchPath, ah as matchRoutes, a9 as parsePath, ai as redirect, aj as redirectDocument, ak as replace, al as resolvePath, n as unstable_MiddlewareFunction, a5 as unstable_RouterContext, a7 as unstable_createContext } from './context-DohQKLID.mjs';
3
+ import { a as RouteComponentType, H as HydrateFallbackType, E as ErrorBoundaryType } from './components-CuPfnyiZ.mjs';
4
+ export { f as Await, A as AwaitProps, I as IndexRouteProps, L as LayoutRouteProps, g as MemoryRouter, M as MemoryRouterOpts, b as MemoryRouterProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, P as PathRouteProps, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, W as UNSAFE_WithComponentProps, v as UNSAFE_WithErrorBoundaryProps, t as UNSAFE_WithHydrateFallbackProps, q as UNSAFE_hydrationRouteProperties, s as UNSAFE_mapRouteProperties, w as UNSAFE_withComponentProps, x as UNSAFE_withErrorBoundaryProps, u as UNSAFE_withHydrateFallbackProps, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, r as renderMatches } from './components-CuPfnyiZ.mjs';
5
5
  import * as React from 'react';
6
6
  import React__default, { ReactElement } from 'react';
7
- import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-KLg-U4nr.mjs';
8
- export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a0 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a1 as HandleDataRequestFunction, a2 as HandleDocumentRequestFunction, a3 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, $ as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, _ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a4 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a5 as UNSAFE_FrameworkContext, a6 as UNSAFE_createClientRoutes, a7 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a8 as UNSAFE_shouldHydrateRouteLoader, a9 as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-KLg-U4nr.mjs';
7
+ import { c as RouteModules, d as SerializeFrom, e as MetaFunction, f as LinksFunction, A as AppLoadContext, E as Equal, g as ClientActionFunction, h as ClientLoaderFunction, H as HeadersFunction } from './route-data-CpB5xtMm.mjs';
8
+ export { i as ClientActionFunctionArgs, j as ClientLoaderFunctionArgs, k as HeadersArgs, n as HtmlLinkDescriptor, L as LinkDescriptor, l as MetaArgs, M as MetaDescriptor, m as PageLinkDescriptor, u as unstable_SerializesTo } from './route-data-CpB5xtMm.mjs';
9
+ import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-CuajY2vy.mjs';
10
+ export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-CuajY2vy.mjs';
9
11
  import { ParseOptions, SerializeOptions } from 'cookie';
10
12
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
11
13
  import { P as Pages } from './register-DiOIlEq5.mjs';
12
14
  export { a as Register } from './register-DiOIlEq5.mjs';
13
- import { R as RSCPayload, m as matchRSCServerRequest } from './browser-7LYX59NK.mjs';
14
- export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, L as unstable_LoadServerActionFunction, c as unstable_RSCManifestPayload, d as unstable_RSCMatch, e as unstable_RSCRenderPayload, j as unstable_RSCRouteConfig, i as unstable_RSCRouteConfigEntry, f as unstable_RSCRouteManifest, h as unstable_RSCRouteMatch, g as unstable_getRSCStream } from './browser-7LYX59NK.mjs';
15
- import 'node:async_hooks';
15
+ export { g as unstable_getRSCStream } from './browser-z32v5KVN.mjs';
16
16
 
17
17
  declare const SingleFetchRedirectSymbol: unique symbol;
18
18
  declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined): DataStrategyFunction;
@@ -97,7 +97,7 @@ declare function useLocation(): Location;
97
97
  *
98
98
  * @public
99
99
  * @category Hooks
100
- * @returns The current {@link NavigationType} type (`"PUSH"`, `"REPLACE"`, or `"POP"`)
100
+ * @returns The current {@link NavigationType} (`"POP"`, `"PUSH"`, or `"REPLACE"`)
101
101
  */
102
102
  declare function useNavigationType(): Action;
103
103
  /**
@@ -231,7 +231,7 @@ declare function useNavigate(): NavigateFunction;
231
231
  * Often parent routes manage state or other values you want shared with child
232
232
  * routes. You can create your own [context provider](https://react.dev/learn/passing-data-deeply-with-context)
233
233
  * if you like, but this is such a common situation that it's built-into
234
- * `<Outlet />`.
234
+ * {@link Outlet | `<Outlet>`}.
235
235
  *
236
236
  * ```tsx
237
237
  * // Parent route
@@ -243,7 +243,7 @@ declare function useNavigate(): NavigateFunction;
243
243
  *
244
244
  * ```tsx
245
245
  * // Child route
246
- * import { useOutletContext } from "react-router-dom";
246
+ * import { useOutletContext } from "react-router";
247
247
  *
248
248
  * function Child() {
249
249
  * const [count, setCount] = useOutletContext();
@@ -252,21 +252,23 @@ declare function useNavigate(): NavigateFunction;
252
252
  * }
253
253
  * ```
254
254
  *
255
- * If you're using TypeScript, we recommend the parent component provide a custom
256
- * hook for accessing the context value. This makes it easier for consumers to
257
- * get nice typings, control consumers, and know who's consuming the context value.
255
+ * If you're using TypeScript, we recommend the parent component provide a
256
+ * custom hook for accessing the context value. This makes it easier for
257
+ * consumers to get nice typings, control consumers, and know who's consuming
258
+ * the context value.
258
259
  *
259
260
  * Here's a more realistic example:
260
261
  *
261
- * ```tsx filename=src/routes/dashboard.tsx lines=[13,19]
262
- * import * as React from "react";
262
+ * ```tsx filename=src/routes/dashboard.tsx lines=[14,20]
263
+ * import { useState } from "react";
264
+ * import { Outlet, useOutletContext } from "react-router";
265
+ *
263
266
  * import type { User } from "./types";
264
- * import { Outlet, useOutletContext } from "react-router-dom";
265
267
  *
266
268
  * type ContextType = { user: User | null };
267
269
  *
268
270
  * export default function Dashboard() {
269
- * const [user, setUser] = React.useState<User | null>(null);
271
+ * const [user, setUser] = useState<User | null>(null);
270
272
  *
271
273
  * return (
272
274
  * <div>
@@ -726,22 +728,23 @@ declare function useAsyncError(): unknown;
726
728
  * - `blocked` - the blocker has prevented a navigation
727
729
  * - `proceeding` - the blocker is proceeding through from a blocked navigation
728
730
  * - **`location`**
729
- * - When in a `blocked` state, this represents the {@link Location} to which we
730
- * blocked a navigation. When in a `proceeding` state, this is the location
731
- * being navigated to after a `blocker.proceed()` call.
731
+ * - When in a `blocked` state, this represents the {@link Location} to which
732
+ * we blocked a navigation. When in a `proceeding` state, this is the
733
+ * location being navigated to after a `blocker.proceed()` call.
732
734
  * - **`proceed()`**
733
- * - When in a `blocked` state, you may call `blocker.proceed()` to proceed to the
734
- * blocked location.
735
+ * - When in a `blocked` state, you may call `blocker.proceed()` to proceed to
736
+ * the blocked location.
735
737
  * - **`reset()`**
736
- * - When in a `blocked` state, you may call `blocker.reset()` to return the blocker
737
- * back to an `unblocked` state and leave the user at the current location.
738
+ * - When in a `blocked` state, you may call `blocker.reset()` to return the
739
+ * blocker to an `unblocked` state and leave the user at the current
740
+ * location.
738
741
  *
739
742
  * @example
740
743
  * // Boolean version
741
- * const blocker = useBlocker(value !== "");
744
+ * let blocker = useBlocker(value !== "");
742
745
  *
743
746
  * // Function version
744
- * const blocker = useBlocker(
747
+ * let blocker = useBlocker(
745
748
  * ({ currentLocation, nextLocation, historyAction }) =>
746
749
  * value !== "" &&
747
750
  * currentLocation.pathname !== nextLocation.pathname
@@ -823,25 +826,37 @@ declare function useAsyncError(): unknown;
823
826
  */
824
827
  declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
825
828
 
829
+ /**
830
+ * @category Types
831
+ */
826
832
  interface ServerRouterProps {
833
+ /**
834
+ * The entry context containing the manifest, route modules, and other data
835
+ * needed for rendering.
836
+ */
827
837
  context: EntryContext;
838
+ /**
839
+ * The URL of the request being handled.
840
+ */
828
841
  url: string | URL;
842
+ /**
843
+ * An optional `nonce` for [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP)
844
+ * compliance, used to allow inline scripts to run safely.
845
+ */
829
846
  nonce?: string;
830
847
  }
831
848
  /**
832
- * The server entry point for a React Router app in Framework Mode. This component
833
- * is used to generate the HTML in the response from the server.
834
- * See [`entry.server.tsx`](../api/framework-conventions/entry.server.tsx).
849
+ * The server entry point for a React Router app in Framework Mode. This
850
+ * component is used to generate the HTML in the response from the server. See
851
+ * [`entry.server.tsx`](../framework-conventions/entry.server.tsx).
835
852
  *
836
853
  * @public
837
854
  * @category Framework Routers
838
855
  * @mode framework
839
856
  * @param props Props
840
- * @param props.context The entry context containing the manifest, route modules,
841
- * and other data needed for rendering.
842
- * @param props.url The URL of the request being handled.
843
- * @param props.nonce An optional nonce for Content Security Policy (CSP) compliance,
844
- * used to allow inline scripts to run safely.
857
+ * @param {ServerRouterProps.context} props.context n/a
858
+ * @param {ServerRouterProps.nonce} props.nonce n/a
859
+ * @param {ServerRouterProps.url} props.url n/a
845
860
  * @returns A React element that represents the server-rendered application.
846
861
  */
847
862
  declare function ServerRouter({ context, url, nonce, }: ServerRouterProps): ReactElement;
@@ -956,7 +971,7 @@ type IsCookieFunction = (object: any) => object is Cookie;
956
971
  */
957
972
  declare const isCookie: IsCookieFunction;
958
973
 
959
- type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? unstable_InitialContext : AppLoadContext) => Promise<Response>;
974
+ type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext) => Promise<Response>;
960
975
  type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
961
976
  declare const createRequestHandler: CreateRequestHandlerFunction;
962
977
 
@@ -1153,6 +1168,188 @@ type ToArgs<Params extends Record<string, string | undefined>> = Equal<Params, {
1153
1168
  */
1154
1169
  declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
1155
1170
 
1171
+ type RSCRouteConfigEntryBase = {
1172
+ action?: ActionFunction;
1173
+ clientAction?: ClientActionFunction;
1174
+ clientLoader?: ClientLoaderFunction;
1175
+ ErrorBoundary?: React.ComponentType<any>;
1176
+ handle?: any;
1177
+ headers?: HeadersFunction;
1178
+ HydrateFallback?: React.ComponentType<any>;
1179
+ Layout?: React.ComponentType<any>;
1180
+ links?: LinksFunction;
1181
+ loader?: LoaderFunction;
1182
+ meta?: MetaFunction;
1183
+ shouldRevalidate?: ShouldRevalidateFunction;
1184
+ };
1185
+ type RSCRouteConfigEntry = RSCRouteConfigEntryBase & {
1186
+ id: string;
1187
+ path?: string;
1188
+ Component?: React.ComponentType<any>;
1189
+ lazy?: () => Promise<RSCRouteConfigEntryBase & ({
1190
+ default?: React.ComponentType<any>;
1191
+ Component?: never;
1192
+ } | {
1193
+ default?: never;
1194
+ Component?: React.ComponentType<any>;
1195
+ })>;
1196
+ } & ({
1197
+ index: true;
1198
+ } | {
1199
+ children?: RSCRouteConfigEntry[];
1200
+ });
1201
+ type RSCRouteConfig = Array<RSCRouteConfigEntry>;
1202
+ type RSCRouteManifest = {
1203
+ clientAction?: ClientActionFunction;
1204
+ clientLoader?: ClientLoaderFunction;
1205
+ element?: React.ReactElement | false;
1206
+ errorElement?: React.ReactElement;
1207
+ handle?: any;
1208
+ hasAction: boolean;
1209
+ hasComponent: boolean;
1210
+ hasErrorBoundary: boolean;
1211
+ hasLoader: boolean;
1212
+ hydrateFallbackElement?: React.ReactElement;
1213
+ id: string;
1214
+ index?: boolean;
1215
+ links?: LinksFunction;
1216
+ meta?: MetaFunction;
1217
+ parentId?: string;
1218
+ path?: string;
1219
+ shouldRevalidate?: ShouldRevalidateFunction;
1220
+ };
1221
+ type RSCRouteMatch = RSCRouteManifest & {
1222
+ params: Params;
1223
+ pathname: string;
1224
+ pathnameBase: string;
1225
+ };
1226
+ type RSCRenderPayload = {
1227
+ type: "render";
1228
+ actionData: Record<string, any> | null;
1229
+ basename: string | undefined;
1230
+ errors: Record<string, any> | null;
1231
+ loaderData: Record<string, any>;
1232
+ location: Location;
1233
+ matches: RSCRouteMatch[];
1234
+ patches?: RSCRouteManifest[];
1235
+ nonce?: string;
1236
+ formState?: unknown;
1237
+ };
1238
+ type RSCManifestPayload = {
1239
+ type: "manifest";
1240
+ patches: RSCRouteManifest[];
1241
+ };
1242
+ type RSCActionPayload = {
1243
+ type: "action";
1244
+ actionResult: Promise<unknown>;
1245
+ rerender?: Promise<RSCRenderPayload | RSCRedirectPayload>;
1246
+ };
1247
+ type RSCRedirectPayload = {
1248
+ type: "redirect";
1249
+ status: number;
1250
+ location: string;
1251
+ replace: boolean;
1252
+ reload: boolean;
1253
+ actionResult?: Promise<unknown>;
1254
+ };
1255
+ type RSCPayload = RSCRenderPayload | RSCManifestPayload | RSCActionPayload | RSCRedirectPayload;
1256
+ type RSCMatch = {
1257
+ statusCode: number;
1258
+ headers: Headers;
1259
+ payload: RSCPayload;
1260
+ };
1261
+ type DecodeActionFunction = (formData: FormData) => Promise<() => Promise<unknown>>;
1262
+ type DecodeFormStateFunction = (result: unknown, formData: FormData) => unknown;
1263
+ type DecodeReplyFunction = (reply: FormData | string, { temporaryReferences }: {
1264
+ temporaryReferences: unknown;
1265
+ }) => Promise<unknown[]>;
1266
+ type LoadServerActionFunction = (id: string) => Promise<Function>;
1267
+ /**
1268
+ * Matches the given routes to a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1269
+ * and returns an [RSC](https://react.dev/reference/rsc/server-components)
1270
+ * [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1271
+ * encoding an {@link unstable_RSCPayload} for consumption by an [RSC](https://react.dev/reference/rsc/server-components)
1272
+ * enabled client router.
1273
+ *
1274
+ * @example
1275
+ * import {
1276
+ * createTemporaryReferenceSet,
1277
+ * decodeAction,
1278
+ * decodeReply,
1279
+ * loadServerAction,
1280
+ * renderToReadableStream,
1281
+ * } from "@vitejs/plugin-rsc/rsc";
1282
+ * import { unstable_matchRSCServerRequest as matchRSCServerRequest } from "react-router";
1283
+ *
1284
+ * matchRSCServerRequest({
1285
+ * createTemporaryReferenceSet,
1286
+ * decodeAction,
1287
+ * decodeFormState,
1288
+ * decodeReply,
1289
+ * loadServerAction,
1290
+ * request,
1291
+ * routes: routes(),
1292
+ * generateResponse(match) {
1293
+ * return new Response(
1294
+ * renderToReadableStream(match.payload),
1295
+ * {
1296
+ * status: match.statusCode,
1297
+ * headers: match.headers,
1298
+ * }
1299
+ * );
1300
+ * },
1301
+ * });
1302
+ *
1303
+ * @name unstable_matchRSCServerRequest
1304
+ * @public
1305
+ * @category RSC
1306
+ * @mode data
1307
+ * @param opts Options
1308
+ * @param opts.basename The basename to use when matching the request.
1309
+ * @param opts.createTemporaryReferenceSet A function that returns a temporary
1310
+ * reference set for the request, used to track temporary references in the [RSC](https://react.dev/reference/rsc/server-components)
1311
+ * stream.
1312
+ * @param opts.decodeAction Your `react-server-dom-xyz/server`'s `decodeAction`
1313
+ * function, responsible for loading a server action.
1314
+ * @param opts.decodeFormState A function responsible for decoding form state for
1315
+ * progressively enhanceable forms with React's [`useActionState`](https://react.dev/reference/react/useActionState)
1316
+ * using your `react-server-dom-xyz/server`'s `decodeFormState`.
1317
+ * @param opts.decodeReply Your `react-server-dom-xyz/server`'s `decodeReply`
1318
+ * function, used to decode the server function's arguments and bind them to the
1319
+ * implementation for invocation by the router.
1320
+ * @param opts.generateResponse A function responsible for using your
1321
+ * `renderToReadableStream` to generate a [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1322
+ * encoding the {@link unstable_RSCPayload}.
1323
+ * @param opts.loadServerAction Your `react-server-dom-xyz/server`'s
1324
+ * `loadServerAction` function, used to load a server action by ID.
1325
+ * @param opts.onError An optional error handler that will be called with any
1326
+ * errors that occur during the request processing.
1327
+ * @param opts.request The [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1328
+ * to match against.
1329
+ * @param opts.requestContext An instance of {@link unstable_RouterContextProvider}
1330
+ * that should be created per request, to be passed to [`action`](../../start/data/route-object#action)s,
1331
+ * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
1332
+ * @param opts.routes Your {@link unstable_RSCRouteConfigEntry | route definitions}.
1333
+ * @returns A [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1334
+ * that contains the [RSC](https://react.dev/reference/rsc/server-components)
1335
+ * data for hydration.
1336
+ */
1337
+ declare function matchRSCServerRequest({ createTemporaryReferenceSet, basename, decodeReply, requestContext, loadServerAction, decodeAction, decodeFormState, onError, request, routes, generateResponse, }: {
1338
+ createTemporaryReferenceSet: () => unknown;
1339
+ basename?: string;
1340
+ decodeReply?: DecodeReplyFunction;
1341
+ decodeAction?: DecodeActionFunction;
1342
+ decodeFormState?: DecodeFormStateFunction;
1343
+ requestContext?: unstable_RouterContextProvider;
1344
+ loadServerAction?: LoadServerActionFunction;
1345
+ onError?: (error: unknown) => void;
1346
+ request: Request;
1347
+ routes: RSCRouteConfigEntry[];
1348
+ generateResponse: (match: RSCMatch, { temporaryReferences, }: {
1349
+ temporaryReferences: unknown;
1350
+ }) => Response;
1351
+ }): Promise<Response>;
1352
+
1156
1353
  type BrowserCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>, { temporaryReferences, }: {
1157
1354
  temporaryReferences: unknown;
1158
1355
  }) => Promise<unknown>;
@@ -1187,10 +1384,12 @@ type EncodeReplyFunction = (args: unknown[], options: {
1187
1384
  * @param opts.createFromReadableStream Your `react-server-dom-xyz/client`'s
1188
1385
  * `createFromReadableStream`. Used to decode payloads from the server.
1189
1386
  * @param opts.createTemporaryReferenceSet A function that creates a temporary
1190
- * reference set for the RSC payload.
1387
+ * reference set for the [RSC](https://react.dev/reference/rsc/server-components)
1388
+ * payload.
1191
1389
  * @param opts.encodeReply Your `react-server-dom-xyz/client`'s `encodeReply`.
1192
1390
  * Used when sending payloads to the server.
1193
- * @param opts.fetch Optional fetch implementation. Defaults to global `fetch`.
1391
+ * @param opts.fetch Optional [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
1392
+ * implementation. Defaults to global [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch).
1194
1393
  * @returns A function that can be used to call server actions.
1195
1394
  */
1196
1395
  declare function createCallServer({ createFromReadableStream, createTemporaryReferenceSet, encodeReply, fetch: fetchImplementation, }: {
@@ -1200,8 +1399,10 @@ declare function createCallServer({ createFromReadableStream, createTemporaryRef
1200
1399
  fetch?: (request: Request) => Promise<Response>;
1201
1400
  }): (id: string, args: unknown[]) => Promise<unknown>;
1202
1401
  /**
1203
- * Props for the `unstable_RSCHydratedRouter` component.
1402
+ * Props for the {@link unstable_RSCHydratedRouter} component.
1403
+ *
1204
1404
  * @name unstable_RSCHydratedRouterProps
1405
+ * @category Types
1205
1406
  */
1206
1407
  interface RSCHydratedRouterProps {
1207
1408
  /**
@@ -1210,27 +1411,29 @@ interface RSCHydratedRouterProps {
1210
1411
  */
1211
1412
  createFromReadableStream: BrowserCreateFromReadableStreamFunction;
1212
1413
  /**
1213
- * Optional fetch implementation. Defaults to global `fetch`.
1414
+ * Optional fetch implementation. Defaults to global [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch).
1214
1415
  */
1215
1416
  fetch?: (request: Request) => Promise<Response>;
1216
1417
  /**
1217
- * The decoded `RSCPayload` to hydrate.
1418
+ * The decoded {@link unstable_RSCPayload} to hydrate.
1218
1419
  */
1219
1420
  payload: RSCPayload;
1220
1421
  /**
1221
- * `eager` or `lazy` - Determines if links are eagerly discovered, or delayed
1222
- * until clicked.
1422
+ * `"eager"` or `"lazy"` - Determines if links are eagerly discovered, or
1423
+ * delayed until clicked.
1223
1424
  */
1224
1425
  routeDiscovery?: "eager" | "lazy";
1225
1426
  /**
1226
- * A function that returns an `unstable_InitialContext` object
1227
- * (`Map<RouterContext, unknown>`), for use in client loaders, actions and
1228
- * middleware.
1427
+ * A function that returns an {@link unstable_RouterContextProvider} instance
1428
+ * which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
1429
+ * [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
1430
+ * This function is called to generate a fresh `context` instance on each
1431
+ * navigation or fetcher call.
1229
1432
  */
1230
1433
  unstable_getContext?: RouterInit["unstable_getContext"];
1231
1434
  }
1232
1435
  /**
1233
- * Hydrates a server rendered `RSCPayload` in the browser.
1436
+ * Hydrates a server rendered {@link unstable_RSCPayload} in the browser.
1234
1437
  *
1235
1438
  * @example
1236
1439
  * import { startTransition, StrictMode } from "react";
@@ -1241,25 +1444,19 @@ interface RSCHydratedRouterProps {
1241
1444
  * } from "react-router";
1242
1445
  * import type { unstable_RSCPayload as RSCPayload } from "react-router";
1243
1446
  *
1244
- * createFromReadableStream(getRSCStream()).then(
1245
- * (payload: RSCServerPayload) => {
1246
- * startTransition(async () => {
1247
- * hydrateRoot(
1248
- * document,
1249
- * <StrictMode>
1250
- * <RSCHydratedRouter
1251
- * createFromReadableStream={
1252
- * createFromReadableStream
1253
- * }
1254
- * payload={payload}
1255
- * />
1256
- * </StrictMode>,
1257
- * {
1258
- * formState: await getFormState(payload),
1259
- * }
1260
- * );
1261
- * });
1262
- * }
1447
+ * createFromReadableStream(getRSCStream()).then((payload) =>
1448
+ * startTransition(async () => {
1449
+ * hydrateRoot(
1450
+ * document,
1451
+ * <StrictMode>
1452
+ * <RSCHydratedRouter
1453
+ * createFromReadableStream={createFromReadableStream}
1454
+ * payload={payload}
1455
+ * />
1456
+ * </StrictMode>,
1457
+ * { formState: await getFormState(payload) },
1458
+ * );
1459
+ * }),
1263
1460
  * );
1264
1461
  *
1265
1462
  * @name unstable_RSCHydratedRouter
@@ -1269,18 +1466,20 @@ interface RSCHydratedRouterProps {
1269
1466
  * @param props Props
1270
1467
  * @param {unstable_RSCHydratedRouterProps.createFromReadableStream} props.createFromReadableStream n/a
1271
1468
  * @param {unstable_RSCHydratedRouterProps.fetch} props.fetch n/a
1469
+ * @param {unstable_RSCHydratedRouterProps.unstable_getContext} props.unstable_getContext n/a
1272
1470
  * @param {unstable_RSCHydratedRouterProps.payload} props.payload n/a
1273
1471
  * @param {unstable_RSCHydratedRouterProps.routeDiscovery} props.routeDiscovery n/a
1274
- * @param {unstable_RSCHydratedRouterProps.unstable_getContext} props.unstable_getContext n/a
1275
- * @returns A hydrated router that can be used to navigate and render routes.
1472
+ * @returns A hydrated {@link DataRouter} that can be used to navigate and
1473
+ * render routes.
1276
1474
  */
1277
1475
  declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, unstable_getContext, }: RSCHydratedRouterProps): React.JSX.Element;
1278
1476
 
1279
1477
  type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
1280
1478
  /**
1281
- * Routes the incoming request to the RSC server and appropriately proxies the
1282
- * server response for data / resource requests, or renders to HTML for a document
1283
- * request.
1479
+ * Routes the incoming [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1480
+ * to the [RSC](https://react.dev/reference/rsc/server-components) server and
1481
+ * appropriately proxies the server response for data / resource requests, or
1482
+ * renders to HTML for a document request.
1284
1483
  *
1285
1484
  * @example
1286
1485
  * import { createFromReadableStream } from "@vitejs/plugin-rsc/ssr";
@@ -1314,15 +1513,17 @@ type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) =>
1314
1513
  * @param opts Options
1315
1514
  * @param opts.createFromReadableStream Your `react-server-dom-xyz/client`'s
1316
1515
  * `createFromReadableStream` function, used to decode payloads from the server.
1317
- * @param opts.fetchServer A function that forwards a `Request` to the RSC handler
1318
- * and returns a `Promise<Response>` containing a serialized `RSCPayload`.
1319
- * @param opts.renderHTML A function that renders the `RSCPayload` to HTML, usually
1320
- * using a `<RSCStaticRouter>`.
1321
- * @param opts.request The request to route.
1516
+ * @param opts.fetchServer A function that forwards a [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
1517
+ * to the [RSC](https://react.dev/reference/rsc/server-components) handler
1518
+ * and returns a `Promise<Response>` containing a serialized {@link unstable_RSCPayload}.
1322
1519
  * @param opts.hydrate Whether to hydrate the server response with the RSC payload.
1323
1520
  * Defaults to `true`.
1324
- * @returns A `Response` that either contains the RSC payload for data requests, or
1325
- * renders the HTML for document requests.
1521
+ * @param opts.renderHTML A function that renders the {@link unstable_RSCPayload} to
1522
+ * HTML, usually using a {@link unstable_RSCStaticRouter | `<RSCStaticRouter>`}.
1523
+ * @param opts.request The request to route.
1524
+ * @returns A [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
1525
+ * that either contains the [RSC](https://react.dev/reference/rsc/server-components)
1526
+ * payload for data requests, or renders the HTML for document requests.
1326
1527
  */
1327
1528
  declare function routeRSCServerRequest({ request, fetchServer, createFromReadableStream, renderHTML, hydrate, }: {
1328
1529
  request: Request;
@@ -1332,19 +1533,21 @@ declare function routeRSCServerRequest({ request, fetchServer, createFromReadabl
1332
1533
  hydrate?: boolean;
1333
1534
  }): Promise<Response>;
1334
1535
  /**
1335
- * Props for the `RSCStaticRouter` component.
1536
+ * Props for the {@link unstable_RSCStaticRouter} component.
1537
+ *
1336
1538
  * @name unstable_RSCStaticRouterProps
1539
+ * @category Types
1337
1540
  */
1338
1541
  interface RSCStaticRouterProps {
1339
1542
  /**
1340
- * A function that starts decoding of the `RSCPayload`. Usually passed through
1341
- * from `routeRSCServerRequest`'s `renderHTML`.
1543
+ * A function that starts decoding of the {@link unstable_RSCPayload}. Usually passed
1544
+ * through from {@link unstable_routeRSCServerRequest}'s `renderHTML`.
1342
1545
  */
1343
1546
  getPayload: () => Promise<RSCPayload>;
1344
1547
  }
1345
1548
  /**
1346
- * Pre-renders an `RSCPayload` to HTML. Usually used in `routeRSCServerRequest`'s
1347
- * `renderHTML` callback.
1549
+ * Pre-renders an {@link unstable_RSCPayload} to HTML. Usually used in
1550
+ * {@link unstable_routeRSCServerRequest}'s `renderHTML` callback.
1348
1551
  *
1349
1552
  * @example
1350
1553
  * import { createFromReadableStream } from "@vitejs/plugin-rsc/ssr";
@@ -1377,7 +1580,7 @@ interface RSCStaticRouterProps {
1377
1580
  * @mode data
1378
1581
  * @param props Props
1379
1582
  * @param {unstable_RSCStaticRouterProps.getPayload} props.getPayload n/a
1380
- * @returns A React component that renders the `RSCPayload` as HTML.
1583
+ * @returns A React component that renders the {@link unstable_RSCPayload} as HTML.
1381
1584
  */
1382
1585
  declare function RSCStaticRouter({ getPayload }: RSCStaticRouterProps): React.JSX.Element | null;
1383
1586
 
@@ -1421,6 +1624,11 @@ declare function getHydrationData(state: {
1421
1624
  hasHydrateFallback: boolean;
1422
1625
  }, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
1423
1626
 
1627
+ /**
1628
+ * @module index
1629
+ * @mergeModuleWith react-router
1630
+ */
1631
+
1424
1632
  declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
1425
1633
 
1426
- export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, 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, 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 EncodeReplyFunction as unstable_EncodeReplyFunction, unstable_InitialContext, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, RSCPayload as unstable_RSCPayload, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, unstable_RouterContextProvider, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, 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 };
1634
+ 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, 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 };