| 1 |
|
| 2 | import { DataRouteObject, RouteManifest } from "../../router/utils.js";
|
| 3 | import { HydrationState } from "../../router/router.js";
|
| 4 | import { ClientLoaderFunction, RouteModules } from "./routeModules.js";
|
| 5 |
|
| 6 | interface Route {
|
| 7 | index?: boolean;
|
| 8 | caseSensitive?: boolean;
|
| 9 | id: string;
|
| 10 | parentId?: string;
|
| 11 | path?: string;
|
| 12 | }
|
| 13 | interface EntryRoute extends Route {
|
| 14 | hasAction: boolean;
|
| 15 | hasLoader: boolean;
|
| 16 | hasClientAction: boolean;
|
| 17 | hasClientLoader: boolean;
|
| 18 | hasClientMiddleware: boolean;
|
| 19 | hasErrorBoundary: boolean;
|
| 20 | imports?: string[];
|
| 21 | css?: string[];
|
| 22 | module: string;
|
| 23 | clientActionModule: string | undefined;
|
| 24 | clientLoaderModule: string | undefined;
|
| 25 | clientMiddlewareModule: string | undefined;
|
| 26 | hydrateFallbackModule: string | undefined;
|
| 27 | parentId?: string;
|
| 28 | }
|
| 29 | declare function createClientRoutesWithHMRRevalidationOptOut(needsRevalidation: Set<string>, manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState, ssr: boolean, isSpaMode: boolean): DataRouteObject[];
|
| 30 | declare function createClientRoutes(manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState | null, ssr: boolean, isSpaMode: boolean, parentId?: string, routesByParentId?: Record<string, Omit<EntryRoute, "children">[]>, needsRevalidation?: Set<string>): DataRouteObject[];
|
| 31 | declare function shouldHydrateRouteLoader(routeId: string, clientLoader: ClientLoaderFunction | undefined, hasLoader: boolean, isSpaMode: boolean): boolean;
|
| 32 | //#endregion
|
| 33 | export { EntryRoute, Route, createClientRoutes, createClientRoutesWithHMRRevalidationOptOut, shouldHydrateRouteLoader }; |
| \ | No newline at end of file |