import { DocumentWriter, WriteResult } from '../core/ir/adapters.js'; import { FlowDoc } from '../core/ir/flow.js'; /** * Serialize a {@link FlowDoc} to a WordprocessingML package (E-DOCX) — the * inverse of the docx reader. A flow medium with zero layout and zero I/O: the * body's resolved properties are written as direct (denormalized) formatting, so * the round-trip is semantic, not byte-for-byte. Emits the main document plus * numbering, footnotes/endnotes, comments (+ commentsExtended), per-section * headers/footers, charts and media parts; anything not yet serialized is * reported as a {@link Loss}. * * @param flow The interlayer to write back. * @returns The encoded `.docx` bytes and the loss report. */ export declare function writeDocx(flow: FlowDoc): WriteResult; /** * The {@link DocumentWriter} registration for `.docx`: its id, the medium it * consumes (`flow`), the feature set it supports, and the {@link writeDocx} * entry point. */ export declare const docxWriter: DocumentWriter;