/** * Chunk manifest building and metadata extraction * @module code-splitter/manifest-builder */ import type { Metafile } from "../../../extensions/bundler/index.js"; import type { ChunkInfo, ChunkManifest, MetafileOutput } from "./types.js"; /** Extracts entry name from entry point path */ export declare function extractEntryName(entryPoint: string): string; /** Extracts chunk name from file path */ export declare function extractChunkName(file: string): string; /** Calculates SHA-256 hash of file content (returns first 8 hex chars) */ export declare function calculateFileHash(content: Uint8Array): Promise; /** Determines which imports are critical and should be preloaded */ export declare function isCriticalImport(path: string): boolean; /** Gets preload hints for critical imports */ export declare function getPreloadHints(output: MetafileOutput, outDir: string): string[]; /** Extracts chunk information from metafile output */ export declare function getChunkInfo(file: string, output: MetafileOutput, outDir: string): Promise; /** Builds complete chunk manifest from esbuild metafile */ export declare function buildManifest(metafile: Metafile, routeMap: Map, outDir: string): Promise; /** Writes manifest to disk as JSON */ export declare function writeManifest(manifest: ChunkManifest, outDir: string): Promise; //# sourceMappingURL=manifest-builder.d.ts.map