import type { HookCallback } from '../../../core/hooks/bucket'; import type { HotInstance } from '../../../core/types'; import { BaseAction } from './_base'; /** * Action that tracks column sort changes. * * @class ColumnSortAction * @private */ export declare class ColumnSortAction extends BaseAction { /** * @param {Array} currentSortState The current sort state. */ previousSortState: unknown; /** * @param {Array} newSortState The new sort state. */ nextSortState: unknown; /** * Initializes the column sort action with the previous and next sort state snapshots. */ constructor({ currentSortState, newSortState }: { currentSortState: unknown; newSortState: unknown; }); /** * Registers the `beforeColumnSort` hook listener that records a new ColumnSortAction whenever sorting changes. */ 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; }