import type { SourceMapInput } from "rollup"; /** Minimal chunk shape shared by Rollup and Rolldown OutputChunk. */ interface ChunkLike { fileName: string; map?: { toString(): string; } | null; } /** Minimal bundle shape shared by Rollup and Rolldown OutputBundle. */ interface BundleLike { [key: string]: { type: string; source?: string | Uint8Array; }; } /** * Composes `newMap` with the chunk's existing sourcemap (if any), updates * `chunk.map`, and patches the corresponding `.map` asset in the bundle so * the change is written to disk (Rollup v3+ emits sourcemaps as separate * assets before `generateBundle`). */ export declare function composeSourcemap(chunk: ChunkLike, newMap: SourceMapInput, bundle: BundleLike): void; export {};