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 changes in merged cells. * * @class MergeCellsAction * @private */ export declare class MergeCellsAction extends BaseAction { /** * @param {CellRange} cellRange The merged cell range. */ cellRange: CellRange; /** * Stores the cell data captured before the merge, used to restore values when the action is undone. */ data: unknown; /** * Initializes the merge cells action with the affected cell range and the original cell data. */ constructor({ data, cellRange }: { data: unknown; cellRange: CellRange; }); /** * Registers the hooks needed to capture merge and unmerge events so they can be tracked for undo and redo. */ 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; }