import type { Block, DocumentModel, SectionProperties } from './model.js'; import { type XmlDocument, type XmlElement } from './xml.js'; import type { DocPrIdAllocator } from './docpr-ids.js'; import { RelationshipAllocator, type NewRelationship } from './relationship-allocator.js'; /** * Applies `blocks` to the paragraphs and tables directly inside `container` (the document body, or * a header, footer or note root), rewriting only blocks that changed relative to `original`. * Without an allocator, new pictures and external links are rejected (their relationships would * belong to a different package part). */ export declare function applyBlocks(doc: XmlDocument, container: XmlElement, blocks: Block[], original: Block[], allocator: RelationshipAllocator | undefined, contentWidthTwips: number, anchor?: XmlElement | null): void; export interface ApplyModelResult { /** New hyperlink/image relationships save.ts must add to word/_rels/document.xml.rels. */ newRelationships: readonly NewRelationship[]; } export declare function applyModel(doc: XmlDocument, model: DocumentModel, original: Block[], /** Relationship ids already declared in word/_rels/document.xml.rels (styles, numbering, ...). */ reservedRelationshipIds?: Iterable, /** The loaded document's sections, so unchanged sections stay byte-identical. */ baseSections?: SectionProperties[], /** Package-wide `wp:docPr` id allocator shared with header, footer and note parts. */ docPrIds?: DocPrIdAllocator, /** Relationship ids of header/footer parts created for this save, by part name. */ headerFooterReferences?: ReadonlyMap): ApplyModelResult; //# sourceMappingURL=write.d.ts.map