/** * Replace a placeholder string in word/document.xml with a raw XML fragment. * * The placeholder must already be present in the document's XML. Both * placeholder and xmlFragment are inserted verbatim — caller is responsible * for producing well-formed WordprocessingML. * * @param docxBuffer - A valid DOCX file as a Buffer. * @param placeholder - The exact string to find and replace in word/document.xml. * @param xmlFragment - The raw XML string that replaces the placeholder. * @returns A new DOCX Buffer with the substitution applied. * @throws If word/document.xml is missing or the placeholder is not found. */ export declare function injectXml(docxBuffer: Buffer, placeholder: string, xmlFragment: string): Promise; //# sourceMappingURL=inject-xml.d.ts.map