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