import type { HotInstance } from '../../../core/types'; import { Menu } from '../../../plugins/contextMenu/menu'; import { BaseUI } from './_base'; import type { BaseUIOptions } from './_base'; interface SelectMenuItem { key?: string; name?: string; inputsCount?: number; [key: string]: unknown; } /** * @private * @class SelectUI */ export declare class SelectUI extends BaseUI { #private; /** * Returns the default configuration options for the select UI component. */ static get DEFAULTS(): BaseUIOptions; /** * Initializes the select UI component and registers event hooks for dropdown interaction. */ constructor(hotInstance: HotInstance, options: Record); /** * Gets the instance of the Menu. * * @returns {Menu} */ getMenu(): Menu | null; /** * Register all necessary hooks. */ registerHooks(): void; /** * Set options which can be selected in the list. * * @param {Array} items Array of objects with required keys `key` and `name`. */ setItems(items: SelectMenuItem[]): void; /** * Translate names of menu items. * * @param {Array} items Array of objects with required keys `key` and `name`. * @returns {Array} Items with translated `name` keys. */ translateNames(items: SelectMenuItem[]): SelectMenuItem[]; /** * Build DOM structure. */ build(): void; /** * Update DOM structure. */ update(): void; /** * Open select dropdown menu with available options. */ openOptions(): void; /** * Close select dropdown menu. */ closeOptions(): void; /** * Focus element. */ focus(): void; /** * Destroy instance. */ destroy(): void; } export {};