/** * Post-pack OOXML tweaks for primitives the docx npm API does not expose. */ /** * LibreOffice ignores tentative numbering levels and needs w:tab/@w:val="num" * (not "left") for decimal list markers to appear in PDF export. */ export declare function patchNumberingXml(numberingXml: string): string; /** * Vertically center text inside shaded paragraphs that use EXACT line spacing * to simulate block padding. LibreOffice PDF export paints spacing.before outside * w:shd, so padding is folded into w:spacing/@w:line; w:textAlignment centers * glyphs within that shaded band. */ export declare function patchShadedParagraphVerticalAlign(documentXml: string): string; /** * The docx library appends w:tblCellSpacing after w:tblLayout, but CT_TblPrBase * requires it before w:tblInd/w:tblBorders (right after w:tblW/w:jc) — schema * validation fails otherwise and Word may drop the spacing. */ export declare function patchTableCellSpacingOrder(documentXml: string): string; /** * Replace `w:fldSimple` fields with the proper 5-run complex field structure * (begin → instrText → separate → cached display run → end). * * `w:fldSimple` is simpler to emit but LibreOffice's OOXML importer drops the * inner run's `w:rPr` — it creates a bare page-number element with no character * style. Word-style 5-run complex fields preserve run properties when combined * with named character styles (see patchChromeFieldFiles). */ export declare function patchFldSimple(xml: string): string; /** * Patch header/footer parts: fldSimple → complex fields, then promote field run * rPr to FldS* named character styles so LibreOffice applies typography. */ export declare function patchChromeFieldFiles(files: Record): void; /** * Multi-section docs from docx can start with an empty paragraph followed by a * paragraph whose only content is . Word may render this prefix as an * empty first page. Drop only this exact leading prefix inside . */ export declare function patchLeadingBlankSectionPrefix(documentXml: string): string; export declare function patchDocumentXml(documentXml: string): string; //# sourceMappingURL=ooxml-patch.d.ts.map