/** * reject_changes — reject all tracked changes in a OOXML document body. * * Restores the document for the supported revision subset by: * - Removing w:ins elements AND their content (insertions undone) * - Unwrapping w:del elements and converting w:delText → w:t (deletions restored) * - Unwrapping w:moveFrom (keep at original position), removing w:moveTo and content * - Restoring original properties from *PrChange records * - Preserving cross-paragraph bookmark boundaries when resolving inserted paragraph marks * - Stripping paragraph-level revision markers, merging a paragraph whose * mark was a tracked insertion into the following paragraph * - Stripping rsidDel attributes * * Numbering, table-grid/exception, cell-topology, custom XML, and extension * conflict records are not semantically resolved here; see the advanced * revision classification manifest. * * Operates on the W3C DOM (`@xmldom/xmldom`). */ import type { RevisionFilter } from './accept_changes.js'; export type RejectChangesResult = { insertionsRemoved: number; deletionsRestored: number; movesReverted: number; propertyChangesReverted: number; }; /** * Reject all tracked changes in the document body or story root, restoring * the document to its pre-edit state. * * Mutates the Document in place (same convention as acceptChanges). * * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.21 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.22 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.25 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.26 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.29 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.30 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.31 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.32 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.34 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.36 * @conformance ECMA-376 edition 5, Part 1 § 17.13.5.37 */ export declare function rejectChanges(doc: Document, opts?: { filter?: RevisionFilter; }): RejectChangesResult; //# sourceMappingURL=reject_changes.d.ts.map