import type { AgnosticDataRouteObject } from "react-router"; import type { FutureConfig } from "./entry"; import type { ServerRouteModule } from "./routeModules"; export interface RouteManifest { [routeId: string]: Route; } export type ServerRouteManifest = RouteManifest>; export interface Route { index?: boolean; caseSensitive?: boolean; id: string; parentId?: string; path?: string; } export interface EntryRoute extends Route { hasAction: boolean; hasLoader: boolean; hasClientAction: boolean; hasClientLoader: boolean; hasErrorBoundary: boolean; imports?: string[]; css?: string[]; module: string; parentId?: string; } export interface ServerRoute extends Route { children: ServerRoute[]; module: ServerRouteModule; } export declare function createRoutes(manifest: ServerRouteManifest, parentId?: string, routesByParentId?: Record[]>): ServerRoute[]; export declare function createStaticHandlerDataRoutes(manifest: ServerRouteManifest, future: FutureConfig, parentId?: string, routesByParentId?: Record[]>): AgnosticDataRouteObject[];