import { EventEmitter } from '../../stencil.core'; export declare class Autocomplete { activeIndex: number; data: Array<{ text: string; value: string; }>; active: boolean; _text: string; /** * The text is displayed by the form field for users */ text: string; /** * The actual value of the form field */ value: string; /** * The placeholder for the input field */ placeholder: string; /** * Allows to close list after option is selected */ closeAfterSelect: boolean; _closeAfterSelect: boolean; loadingData: boolean; /** * Removes value from list after select */ removeValueFromResultsAfterSelect: boolean; /** * Enable/Disable the input field */ disabled: boolean; /** * The minimum input size for generating suggestions */ minInput: number; /** * The maximally shown suggestions in the list */ maxSuggestions: number; /** * Number of ms to wait before fetching suggestions after keypress */ bufferTime: number | null; /** * Async suggestion generator: * `text` is the displayed for users * `value` is the actual value of the form field */ suggestionGenerator: (text: string) => Promise>; /** * The class names, which should be set on the rendered html elements */ cssClasses: { wrapper: string; input: string; suggestions: string; suggestion: string; active: string; }; /** * Emitted when an item from suggestions was selected */ selected: EventEmitter; /** * Emitted when item was cleared/unselected */ unselected: EventEmitter; /** * Returns the `value` of the selected item */ getValue(): Promise; /** * Returns the `text` of the selected item */ getText(): Promise; protected elementId: string; processChangeCloseAfterSelect(newValue: any): void; componentWillLoad(): void; handleKeyDown(keyCode: any): void; protected _buffer: any; handleKeyUp(keyCode: any, text: any): void; handleFocus(e: FocusEvent): void; handleBlur(e: FocusEvent): void; handleClose(): void; removeValueFromData(value: any): void; handleActivation(next?: boolean): void; reloadData(): void; handleSelection(index: any): void; clearData(): void; clearSelection(clearOnlyValue?: boolean): void; prepareSuggestions(text: any): Promise; render(): any; }