import type { HotInstance } from '../../../core/types'; import { BaseComponent } from './_base'; /** * @private * @class OperatorsComponent */ export declare class OperatorsComponent extends BaseComponent { #private; /** * The name of the component. * * @type {string} */ name: string; /** * Initializes the operators component with the given ID and display name, and builds the operators UI element. */ constructor(hotInstance: HotInstance, options: { id: string; name: string; }); /** * Get menu object descriptor. * * @returns {object} */ getMenuItemDescriptor(): { key: string; name: string; isCommand: boolean; disableSelection: boolean; hidden: () => boolean; renderer: (hot: HotInstance, wrapper: HTMLTableCellElement) => HTMLTableCellElement; }; /** * Add RadioInputUI elements to component. * * @private */ buildOperatorsElement(hotInstance: HotInstance): void; /** * Set state of operators component to check radio input at specific `index`. * * @param {number} searchedIndex Index of radio input to check. */ setChecked(searchedIndex: number): void; /** * Get `id` of active operator. * * @returns {string} */ getActiveOperationId(): string; /** * Export state of the component (get selected operator). * * @returns {string} Returns `id` of selected operator. */ getState(): string; /** * Set state of the component. * * @param {object} value State to restore. */ setState(value?: unknown): void; /** * Update state of component. * * @param {string} [operationId='conjunction'] Id of selected operation. * @param {number} column Physical column index. */ updateState(operationId: string | undefined, column: number): void; /** * Reset elements to their initial state. */ reset(): void; }