/** * Custom undo/redo stack with configurable depth. * Provides better reliability than browser's built-in undo. */ export declare class HistoryManager { private stack; private index; private maxSize; private editorArea; /** * Called after every undo/redo restore so the host can re-wire interactive * structures (table resize handles, code block selects, task checkboxes, etc.) * that are lost when innerHTML is replaced. */ onRestore?: () => void; constructor(editorArea: HTMLElement, maxSize?: number); /** Record current state */ push(html: string): void; undo(): void; redo(): void; canUndo(): boolean; canRedo(): boolean; private moveCursorToEnd; } //# sourceMappingURL=history.d.ts.map