import { UndoManager } from 'yjs'; import { YjsEditor } from './withYjs'; export type YHistoryEditor = YjsEditor & { undoManager: UndoManager; withoutSavingOrigin: unknown; undo: () => void; redo: () => void; }; export declare const YHistoryEditor: { isYHistoryEditor(value: unknown): value is YHistoryEditor; canUndo(editor: YHistoryEditor): boolean; canRedo(editor: YHistoryEditor): boolean; isSaving(editor: YHistoryEditor): boolean; withoutSaving(editor: YHistoryEditor, fn: () => void): void; }; export type WithYHistoryOptions = NonNullable[1]> & { withoutSavingOrigin?: unknown; }; export declare function withYHistory(editor: T, { withoutSavingOrigin, trackedOrigins, ...options }?: WithYHistoryOptions): T & YHistoryEditor;