/** * Snapshot-based undo/redo stack. `push` records a new state and clears the * redo branch; `undo`/`redo` move the cursor and return the restored value. * * @typeParam T - The snapshot type; store immutable snapshots (or clones), * never live references that later mutate. * @example * const edits = new EditStack(initialLayout) * edits.push(nextLayout) * const restored = edits.undo() */ export declare class EditStack { private readonly past; private readonly future; private current; constructor(initial: T); get value(): T; get canUndo(): boolean; get canRedo(): boolean; apply(next: T): void; undo(): T; redo(): T; } //# sourceMappingURL=edit-stack.d.ts.map