/** * Post-processing utility to fix docx.js floating image bugs * * The docx library (as of v9.7.1) has a known issue with floating images: * 1. Duplicate wp:docPr IDs (GitHub issue #2719) * * Historical note: We previously also post-processed relativeHeight and * wrapTight elements. Those steps were removed because we always provide a * valid zIndex upstream and we do not support 'tight' wrapping. * * This utility extracts the DOCX, fixes duplicate IDs, and re-packages it. */ /// /// /** Fix duplicate floating-image IDs without touching the filesystem. */ export declare function fixFloatingImageIdsInBuffer(buffer: Buffer): Buffer; /** * Fix floating image issues in a generated DOCX file * @param docxPath - Path to the DOCX file to fix */ export declare function fixFloatingImageIds(docxPath: string): Promise; //# sourceMappingURL=fixFloatingImageIds.d.ts.map