export interface BuildReport { /** Parts of the original that were carried over untouched. */ preserved: string[]; /** Body-level details that could not be represented in the editor. */ dropped: string[]; /** Diagnostics for the bridge log. */ notes: string[]; } export interface BuildResult { bytes: Buffer; report: BuildReport; } /** * Merge the edited HTML body into the original package. * * Throws on any structural problem - the caller fails the job and keeps the * draft rather than writing a degraded file. */ export declare function buildDocxFromTemplate(original: Buffer, html: string): Promise;