import { default as Swappable } from '../core'; export type HistoryEntry = { type: 'swap' | 'add' | 'remove'; data: any; }; export interface UndoPluginOptions { maxHistorySize?: number; } export interface SwappableWithUndo extends Swappable { history: HistoryEntry[]; historyIndex: number; undo: () => boolean; redo: () => boolean; } export declare function withHistory(instance: Swappable, options?: UndoPluginOptions): SwappableWithUndo;