import type { HotInstance } from '../../../core/types'; /** * @private */ declare class BaseUI { /** * Instance of Handsontable. * * @type {Core} */ hot: HotInstance; /** * DOM element representing the ui element. * * @type {HTMLElement} * @private */ _element: HTMLElement | null; /** * Flag which determines build state of element. * * @type {number} */ state: number; /** * Initializes the base row-move UI element with a reference to the Handsontable instance. */ constructor(hotInstance: HotInstance); /** * Add created UI elements to table. * * @param {HTMLElement} wrapper Element which are parent for our UI element. */ appendTo(wrapper: HTMLElement): void; /** * Method for create UI element. Only create, without append to table. */ build(): void; /** * Method for remove UI element. */ destroy(): void; /** * Check if UI element are appended. * * @returns {boolean} */ isAppended(): boolean; /** * Check if UI element are built. * * @returns {boolean} */ isBuilt(): boolean; /** * Setter for position. * * @param {number} top New top position of the element. * @param {number} left New left position of the element. */ setPosition(top?: number | null, left?: number | null): void; /** * Getter for the element position. * * @returns {object} Object contains left and top position of the element. */ getPosition(): { top: number; left: number; }; /** * Setter for the element size. * * @param {number} width New width of the element. * @param {number} height New height of the element. */ setSize(width?: number, height?: number): void; /** * Getter for the element position. * * @returns {object} Object contains height and width of the element. */ getSize(): { width: number; height: number; }; /** * Setter for the element offset. Offset means marginTop and marginLeft of the element. * * @param {number} top New margin top of the element. * @param {number} left New margin left of the element. */ setOffset(top: number | null, left: number | null): void; /** * Getter for the element offset. * * @returns {object} Object contains top and left offset of the element. */ getOffset(): { top: number; left: number; }; } export default BaseUI;