import { KeyboardOptions, SuggestionBoxParams, onSuggestionSelect } from '../types'; /** * Responsible to handle suggestions and suggestions layout */ declare class SuggestionBox { private keyboardInstance; getOptions: () => KeyboardOptions; suggestionDOMElement: HTMLDivElement | null; onSelect: onSuggestionSelect; candidate?: string; constructor({ getOptions, keyboardInstance, onSelect }: SuggestionBoxParams); /** * Destruct its elements and remove it from keyboard */ destroy(): void; reset(): void; resetIfExist(): void; /** * Shows or hides suggestion box on button click. * @param keyCandidate The last key pressed * @return Return `true` if button has some suggestions to show */ shouldUpdateOrCease(keyCandidate?: string): boolean; /** * Remove keyboard suggestion box */ private clearBox; /** * Renders or update the keyboard suggestions box */ private render; } export default SuggestionBox;