import type { HookCallback } from '../../../core/hooks/bucket'; import type { HotInstance } from '../../../core/types'; import type { default as CellRange } from '../../../3rdparty/walkontable/src/cell/range'; import { BaseAction } from './_base'; /** * Action that tracks cell alignment changes. * * @class CellAlignmentAction * @private */ export declare class CellAlignmentAction extends BaseAction { /** * @param {Array} stateBefore The previous state. */ stateBefore: unknown[]; /** * @param {object} range The cell range. */ range: CellRange[]; /** * @param {string} type The type of the alignment ("top", "left", "bottom" or "right"). */ type: string; /** * @param {string} alignment The alignment CSS class. */ alignment: string; /** * Initializes the cell alignment action with the previous state, cell range, alignment axis, and CSS alignment class. */ constructor({ stateBefore, range, type, alignment }: { stateBefore: unknown[]; range: CellRange[]; type: string; alignment: string; }); /** * Registers the `beforeCellAlignment` hook listener that records a new CellAlignmentAction whenever alignment 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; }