import { ElementRef, EventEmitter, OnChanges, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any; export declare class AutoCompleteComponent implements ControlValueAccessor, OnChanges { private elementRef; private _ref; inputElement: ElementRef; list: Array; template: string; placeholder: string; autoFocus: boolean; bindingProperty: string; disabled: boolean; allowNew: boolean; allowNewMessage: string; showOnFocus: boolean; queryChange: EventEmitter; position: { top: string; width: string; left: string; }; formattedList: Array<{ id: string; label: string; }>; perfectMatch: boolean; selector: string; query: string; listVisible: boolean; hasValidPosition: boolean; constructor(elementRef: ElementRef, _ref: ChangeDetectorRef); ngOnChanges(): void; onKeyDown(e: KeyboardEvent): void; clickAndScrollEvent(event: KeyboardEvent): void; private onTouchedCallback; private onChangeCallback; /** * Emit the value to the parent model */ writeValue(value: string): void; /** * Send a new value to the parent model */ writeNew(): void; hideResults(): boolean; /** * Get selector from the selection item in list and emit it to the parent model */ setQuery(index: number, event?: MouseEvent): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; /** * Restore query and selector to the initial state */ resetQuery(e?: MouseEvent): void; updateQuery(query: string): void; closeList(withFocus?: boolean): void; setPosition(): void; private formatList(); private getListItem(value); /** * Get the value for selector, based on the binding property */ private getValue(item); /** * Parse the template and return the good label for an item in list */ private getLabel(e); }