/** Deterministic dependency analysis for the project's authored pages. */ export interface ChunkAnalysis { pages: Map; /** Number of distinct pages that import each external dependency. */ sharedDeps: Map; suggestedChunks: ChunkSuggestion[]; } /** Source-ordered, duplicate-free imports discovered for one page. */ export interface PageImports { path: string; local: string[]; remote: string[]; shared: string[]; } /** One heuristic vendor-chunk recommendation. */ export interface ChunkSuggestion { name: string; deps: string[]; pages: string[]; /** Estimated bytes saved; this is not a measured output-file size. */ benefit: number; } /** Serializable chunk plan consumed by analysis tooling. */ export interface ChunkManifest { version: string; chunks: Record; pages: Record; } /** * Minimal filesystem capability accepted by chunk analysis. * * Implementations must reject operational failures. A missing top-level scan * root is the only absence treated as an empty source set. */ export interface ChunkOptimizerFileSystem { readDir(path: string): AsyncIterable; readTextFile(path: string): Promise; } //# sourceMappingURL=contracts.d.ts.map