/** * Generic "BOZZA" (draft) watermark injection for DOCX files. * * Ported from apps/api/src/features/finance/invoice/document/inject-draft-watermark.ts * and adapted to accept/return a Buffer instead of a JSZip instance, so it * can be used as a standalone utility without the caller needing to manage * the JSZip lifecycle. * * The original file remains in place until T5/T6 migration work (it will be * deleted once the invoice generator is refactored to use this library util). */ /** * Inject an idempotent "BOZZA" watermark into the document's default header. * * Accepts a DOCX as a Buffer and returns a new DOCX Buffer with the watermark * applied. Re-running on the same document is safe — the SENTINEL marker is * checked first so the watermark is never double-injected. * * @param docxBuffer - A valid DOCX file as a Buffer. * @param text - Watermark text (defaults to "BOZZA"). * @returns A new DOCX Buffer with the watermark injected. */ export declare function injectDraftWatermark(docxBuffer: Buffer, text?: string): Promise; //# sourceMappingURL=inject-draft-watermark.d.ts.map