/** * OpenDoPE Data Binding API * * Resolve data bindings in a document by evaluating XPath expressions * against CustomXML parts and populating the SDT content with values. */ import type { DocxDocument } from "../types.js"; /** * Resolve data bindings in a document by evaluating XPath expressions * against CustomXML parts and populating the SDT content with values. * * Supports: * - Simple value binding: SDT text is replaced with XPath evaluation result * - Repeating sections: SDT with `repeatingSection` is duplicated per data row * - Conditional display: SDT is removed if XPath returns empty/false * * @param doc - The document to process (returns a new modified copy). * @param data - Optional override data map (storeItemId → XML string). If not * provided, uses the document's embedded CustomXML parts. * @returns A new document with bindings resolved. */ export declare function resolveDataBindings(doc: DocxDocument, data?: ReadonlyMap): DocxDocument;