import type { HookCallback } from '../../../core/hooks/bucket'; import type { HotInstance } from '../../../core/types'; import { BaseAction } from './_base'; /** * Action that tracks changes in column removal. * * @class RemoveColumnAction * @private */ export declare class RemoveColumnAction extends BaseAction { /** * @param {number} index The visual column index. */ index: number; /** * @param {number[]} indexes The physical column indexes. */ indexes: number[]; /** * @param {Array} data The removed data. */ data: unknown[][]; /** * @param {number} amount The number of removed columns. */ amount: number; /** * @param {Array} headers The header values. */ headers: unknown[]; /** * @param {number[]} columnPositions The column position. */ columnPositions: number[]; /** * @param {number[]} rowPositions The row position. */ rowPositions: number[]; /** * @param {number} fixedColumnsStart Number of fixed columns on the left. Remove column action change it sometimes. */ fixedColumnsStart: number; /** * @param {Array} removedCellMetas List of removed cell metas. */ removedCellMetas: unknown[]; /** * Initializes the remove column action with the removed data, column indexes, headers, position sequences, and cell meta backup. */ constructor({ index, indexes, data, amount, headers, columnPositions, rowPositions, fixedColumnsStart, removedCellMetas }: { index: number; indexes: number[]; data: unknown[][]; amount: number; headers: unknown[]; columnPositions: number[]; rowPositions: number[]; fixedColumnsStart: number; removedCellMetas: unknown[]; }); /** * Registers the `beforeRemoveCol` hook listener that captures removed column data and records a RemoveColumnAction. */ static startRegisteringEvents(hot: HotInstance, undoRedoPlugin: unknown): void; /** * @param {Core} hot The Handsontable instance. * @param {function(): void} undoneCallback The callback to be called after the action is undone. */ undo(hot: HotInstance, undoneCallback: HookCallback): void; /** * @param {Core} hot The Handsontable instance. * @param {function(): void} redoneCallback The callback to be called after the action is redone. */ redo(hot: HotInstance, redoneCallback: HookCallback): void; }