import { Editor } from '@tiptap/core'; export interface EditorHistoryState { canUndo: boolean; canRedo: boolean; historyDepth: number; isHistoryEmpty: boolean; } export interface EditorHistoryActions { undo: () => boolean; redo: () => boolean; clearHistory: () => void; getHistoryState: () => EditorHistoryState; } /** * Custom hook for managing Tiptap editor history state and actions * Provides real-time updates of undo/redo availability and history management */ export declare const useEditorHistory: (editor: Editor | null) => EditorHistoryState & EditorHistoryActions; /** * Utility function to check if undo/redo actions are available */ export declare const canExecuteHistoryAction: (editor: Editor | null, action: "undo" | "redo") => boolean; /** * Utility function to execute history actions safely */ export declare const executeHistoryAction: (editor: Editor | null, action: "undo" | "redo") => boolean; /** * Get keyboard shortcut text based on platform */ export declare const getHistoryShortcut: (action: "undo" | "redo") => string;