/** * Shared helper to sync `translatedLinkedStyles.docDefaults` back to `convertedXml`. * * After any mutation to `translatedLinkedStyles.docDefaults`, the export-facing * XML-JS tree must be updated. This helper reconstructs the `w:docDefaults` node * from the translated data using the docDefaults translator's `decode()` path. * * Reused by: * - `styles-adapter.ts` (after local mutation) * - SD-2019 collaboration sync (after remote mutation received) */ interface XmlElement { name: string; type?: string; elements?: XmlElement[]; attributes?: Record; } export interface DocDefaultsTranslator { decode(params: { node: { attrs: Record; }; }): XmlElement | undefined; } interface ConverterForSync { convertedXml: Record; translatedLinkedStyles: { docDefaults?: Record; }; } /** * Reconstructs the `w:docDefaults` node in `convertedXml['word/styles.xml']` * from `translatedLinkedStyles.docDefaults`. * * Call after any mutation to `translatedLinkedStyles.docDefaults` to keep * the export-facing XML in sync with the style-engine-facing JS object. */ export declare function syncDocDefaultsToConvertedXml(converter: ConverterForSync, docDefaultsTranslator: DocDefaultsTranslator): void; export {}; //# sourceMappingURL=styles-xml-sync.d.ts.map