import type { HookCallback } from '../../../core/hooks/bucket'; import type { HotInstance } from '../../../core/types'; import { BaseAction } from './_base'; /** * Action that tracks row creation. * * @class CreateRowAction * @private */ export declare class CreateRowAction extends BaseAction { /** * @param {number} index The visual row index. */ index: number; /** * @param {number} amount The number of created rows. */ amount: number; /** * Initializes the create row action with the visual insertion index and the number of rows created. */ constructor({ index, amount }: { index: number; amount: number; }); /** * Registers the `afterCreateRow` hook listener that records a new CreateRowAction after rows are inserted. */ 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; }