import type { Revision, TextRun } from './model.js'; import { type XmlElement } from './xml.js'; /** Element local names this module owns inside a paragraph body; used by write.ts's safety checks. */ export declare const REVISION_WRAPPER_NAMES: string[]; export declare const COMMENT_ANCHOR_NAMES: string[]; /** Move ranges open at the current parse position (they may span paragraphs), innermost last. */ export interface OpenMoves { moveFrom: { name: string; id: string; }[]; moveTo: { name: string; id: string; }[]; } /** A `w:r` whose only content is a `w:commentReference`: a comment anchor, not document text. */ export declare function isCommentReferenceRun(run: XmlElement): boolean; /** Paragraph mark insertion/deletion, recorded as `w:pPr/w:rPr/w:ins|w:del`. */ export declare function paragraphMarkRevision(pPr: XmlElement | undefined): Revision | undefined; /** Marks that `w:pPrChange` recorded a prior paragraph formatting snapshot (not itself modeled). */ export declare function paragraphFormatRevision(pPr: XmlElement | undefined): Revision | undefined; /** Marks that `w:rPrChange` recorded a prior run formatting snapshot (not itself modeled). */ export declare function runFormatRevision(rPr: XmlElement | undefined): Revision | undefined; /** * Walks a paragraph's direct children in document order, expanding `w:ins`/`w:del`/`w:moveFrom`/ * `w:moveTo` wrappers into their contained runs (tagged with the wrapper's revision) and tracking * `w:commentRangeStart`/`w:commentRangeEnd` so runs inside an open range carry the comment's id. * Pass the same `active` array for consecutive paragraphs so a range spanning paragraphs tags * every run inside it. */ export declare function collectParagraphRuns(node: XmlElement, parseRun: (run: XmlElement, revision?: Revision) => TextRun, parseOther?: (item: XmlElement) => TextRun[] | undefined, resolveLink?: (hyperlink: XmlElement) => TextRun['link'], active?: string[], moves?: OpenMoves): { runs: TextRun[]; hasMove: boolean; }; //# sourceMappingURL=parse-revisions.d.ts.map