/** * Route Module Manifest * * Tracks and caches module dependencies per route to enable: * - Expanded modulepreload hints (all dependencies, not just page/layout) * - Module batch endpoint (coalesce multiple requests) * - Background bundle generation * - 103 Early Hints with predictive preloading * * @module module-system/manifest/route-module-manifest */ interface ModuleEntry { path: string; critical: boolean; loadOrder: number; sizeBytes?: number; } interface RouteManifest { route: string; modules: ModuleEntry[]; moduleCount: number; totalSizeBytes?: number; updatedAt: number; renderCount: number; } export declare function startModuleCollection(requestId: string): void; export declare function recordModuleLoad(requestId: string, modulePath: string, _critical?: boolean): void; export declare function finishModuleCollection(requestId: string, projectSlug: string | undefined, route: string, criticalModules?: string[]): void; export declare function getRouteManifest(projectSlug: string | undefined, route: string): RouteManifest | null; export declare function getRouteModulePaths(projectSlug: string | undefined, route: string): string[]; export declare function getCriticalModulePaths(projectSlug: string | undefined, route: string): string[]; export declare function recordSSRModules(projectSlug: string | undefined, route: string, modules: string[]): void; export declare function generateModulePreloadHintsFromManifest(projectSlug: string | undefined, route: string, maxHints?: number): string[]; export declare function getManifestStats(): { routeCount: number; totalModules: number; routes: Array<{ route: string; moduleCount: number; renderCount: number; }>; }; export declare function clearProjectManifests(projectSlug: string): void; export declare function clearAllManifests(): void; export {}; //# sourceMappingURL=route-module-manifest.d.ts.map