/** * DOCX Writers - Document Body * * Renders the main word/document.xml part including all block-level * content types: paragraphs, tables, floating images, TOC, math, * text boxes, and structured document tags. */ import type { XmlSink } from "../../xml/types.js"; import type { DocxDocument, BodyContent, StructuredDocumentTag } from "../types.js"; import { type RenderHelpers, type WordRenderContext } from "./render-context.js"; /** * Render a structured document tag. * * `ctx` may be `undefined` when called from a sub-renderer that only knows * about `RenderHelpers` (e.g. table cell, header/footer). In that case we * still emit a syntactically valid ``, but we cannot auto-assign an * id from the document-wide id generator — callers that care about * uniqueness should provide `properties.id` explicitly. */ export declare function renderSdt(xml: XmlSink, sdt: StructuredDocumentTag, ctx: WordRenderContext | undefined, helpers?: RenderHelpers): void; /** Render a single body content element (paragraph, table, image, etc.). */ export declare function renderBodyContent(xml: XmlSink, content: BodyContent, ctx?: WordRenderContext): void; /** Render the complete word/document.xml. */ export declare function renderDocument(xml: XmlSink, doc: DocxDocument, ctx?: WordRenderContext): void;