import { ICommand } from 'valor-unistore-undo'; import { IStoreState, IRow, IColumn, ICellNN, ID, ICell } from '../index.data'; import { SpreadSheetRuntime } from '../RuntimeContext'; export interface InsertColumnCommandParams { j: number; column: IColumn; forceMerge?: 'left' | null; cells?: Partial[]; copyAdjCellAttrs?: ('value' | 'formula' | 'locked')[]; } interface IUndoContext { updatedStaleCells: ICellNN[]; } declare class InsertColumnCommand extends ICommand { execute: () => boolean; undo: () => void; } export declare function undoInsertColumn(state: IStoreState, j: number, updatedStaleCells: ICellNN[], runtime: SpreadSheetRuntime): { newState: { rows: (IRow & { cellIds: (string | number | null)[]; })[]; columns: IColumn[]; cells: any; } | { cells: Record; cellDeps: Record; varDeps: Record; rows: (IRow & { cellIds: (string | number | null)[]; })[]; columns: IColumn[]; }; }; export default InsertColumnCommand;