/** * Unified pages Rolldown graph (Phase A build + Phase C import). * * Enabled by default in production builds. Opt out with * `ECOPAGES_UNIFIED_PAGES_GRAPH=0`. Covers all static page template extensions * registered on the app config. */ import type { EcoPagesAppConfig } from '../../types/internal-types.js'; export declare const PAGES_UNIFIED_GRAPH_CACHE_DIR = ".server-pages-graph"; export declare const PAGES_UNIFIED_GRAPH_CACHE_FILENAME = ".build-cache.json"; export interface PagesUnifiedGraphCacheManifest { invalidationVersion: string; buildInputsFingerprint: string; buildKey: string; builtAt: number; outputs: Record; } export declare function isPagesUnifiedGraphEnabled(): boolean; /** True when the unified graph should build or serve prebuilt page modules. */ export declare function shouldBuildPagesUnifiedGraph(): boolean; export declare function isPagesUnifiedGraphPage(filePath: string, appConfig: EcoPagesAppConfig): boolean; /** * Builds eligible static pages in one Rolldown invocation and seeds route-module disk cache. */ export declare function ensurePagesUnifiedGraphBuilt(options: { appConfig: EcoPagesAppConfig; entryPaths: readonly string[]; outdir: string; force?: boolean; }): Promise; export declare function importPagesUnifiedGraphModule(appConfig: EcoPagesAppConfig, filePath: string): Promise;