import type { Slice } from '@tiptap/pm/model'; import type { Decoration_Type, Node_Type } from 'ricos-schema'; export type ContentDiffType = Node_Type | Decoration_Type | 'text'; export type ContentDiff = { change: 'insert' | 'delete' | 'replace'; type: ContentDiffType; data?: Record; }; /** * Represents a content change as replacement of slices. * * @export * @class ContentChange */ export declare class ContentChange { private oldSlice; private newSlice; constructor(oldSlice: Slice, newSlice: Slice); private isInsertion; private isDeletion; private isReplacement; private isTextChange; private isMarkChange; private getMarkDiffs; private getNodeDiffs; getDiff(): ContentDiff[]; toJSON(): { old: any; new: any; }; } //# sourceMappingURL=content-change.d.ts.map