import { Store } from '../types'; export interface UndoRedoStateProps { canUndo: boolean; canRedo: boolean; } export interface UndoRedoStore extends Store { undo: () => void; redo: () => void; canUndo: boolean; canRedo: boolean; clearHistory: () => void; beginGroup: (label?: string) => void; endGroup: () => void; } export interface UndoRedoOptions { maxHistorySize?: number; paths?: string[]; coalesceMs?: number; maxBytes?: number; } export declare function undoRedoMiddleware(options?: UndoRedoOptions): (store: Store) => UndoRedoStore;