import * as Y from 'yjs'; import { YjsEditor } from './withYjs'; export declare type YHistoryEditor = YjsEditor & { undoManager: Y.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 declare type WithYHistoryOptions = NonNullable[1]> & { withoutSavingOrigin?: unknown; }; export declare function withYHistory(editor: T, { withoutSavingOrigin, trackedOrigins, ...options }?: WithYHistoryOptions): T & YHistoryEditor; //# sourceMappingURL=withYHistory.d.ts.map