import { Range } from './textareaCommands'; export interface HistoryEntry { value: string; selection: Range; } export interface UseUndoHistoryOptions { limit?: number; debounceMs?: number; } export interface UseUndoHistoryResult { record: (entry: HistoryEntry, immediate?: boolean) => void; undo: () => HistoryEntry | null; redo: () => HistoryEntry | null; canUndo: boolean; canRedo: boolean; reset: (entry: HistoryEntry) => void; } export declare function useUndoHistory(initial: HistoryEntry, options?: UseUndoHistoryOptions): UseUndoHistoryResult;