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