import type { HookCallback } from '../../../core/hooks/bucket'; import type { HotInstance } from '../../../core/types'; import { BaseAction } from './_base'; /** * Action that tracks column move changes. * * @class ColumnMoveAction * @private */ export declare class ColumnMoveAction extends BaseAction { /** * @param {number[]} columns An array with moved columns. */ columns: number[]; /** * @param {number} finalIndex The destination index. */ finalColumnIndex: number; /** * Initializes the column move action with the array of moved column indexes and their destination index. */ constructor({ columns, finalIndex }: { columns: number[]; finalIndex: number; }); /** * Registers the `beforeColumnMove` hook listener that records a new ColumnMoveAction whenever columns are moved. */ 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; }