/** * Result summary from replaying diffs into a transaction. * * @property tr Transaction containing the replayed steps. * @property appliedDiffs Count of diffs successfully applied. * @property skippedDiffs Count of diffs skipped or failed. * @property warnings Non-fatal warnings encountered during replay. */ export type ReplayDiffsResult = { tr: import('prosemirror-state').Transaction; appliedDiffs: number; skippedDiffs: number; warnings: string[]; }; type ReplayDiffsParams = { tr: import('prosemirror-state').Transaction; diff: import('./computeDiff').DiffResult; schema: import('prosemirror-model').Schema; comments?: import('./algorithm/comment-diffing').CommentInput[]; editor?: { commands?: { addImageToCollaboration?: (params: { mediaPath: string; fileData: string; }) => boolean; }; state: { doc: import('prosemirror-model').Node; }; emit?: (event: string, payload: unknown) => void; options?: { documentId?: string | null; mediaFiles?: Record; }; converter?: { translatedLinkedStyles?: { docDefaults?: Record; latentStyles?: Record; styles?: Record>; } | null; translatedNumbering?: { abstracts?: Record; definitions?: Record; } | null; numbering?: { abstracts?: Record; definitions?: Record; } | null; convertedXml?: Record; headers?: Record; footers?: Record; headerIds?: Record; footerIds?: Record; bodySectPr?: Record | null; savedTagsToRestore?: Array>; documentModified?: boolean; promoteToGuid?: () => string; exportToXmlJson?: (opts: { data: unknown; editor: { schema: import('prosemirror-model').Schema; getUpdatedJson: () => unknown; }; editorSchema: import('prosemirror-model').Schema; isHeaderFooter: boolean; comments?: unknown[]; commentDefinitions?: unknown[]; isFinalDoc?: boolean; }) => { result?: { elements?: Array<{ elements?: unknown[]; }>; }; }; } | null; }; trackedChangesRequested?: boolean; }; /** * Replays a diff result over the current editor state. * * @param params Input bundle for replaying diffs. * @param params.tr Transaction to append steps to. * @param params.diff Diff result to replay. * @param params.schema Schema used to rebuild nodes. * @param params.comments Mutable comment store to replay comment diffs into. * @param params.editor Editor instance used to emit comment update events. * @returns Summary and transaction containing the replayed steps. */ export declare function replayDiffs({ tr, diff, schema, comments, editor, trackedChangesRequested, }: ReplayDiffsParams): ReplayDiffsResult; export {}; //# sourceMappingURL=replayDiffs.d.ts.map