import { ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core'; import { FormControl } from '@angular/forms'; import { Observable } from 'rxjs'; export declare class TypeaheadComponent implements OnInit, OnDestroy { /** * Function that will be executed to filter the results shown in the typeahead */ filterFn: (filterTerm: string) => string[] | Observable; /** * Model that will track the contents of the input field * * @deprecated * - Use the `value` input property instead to set the `value` * - Use the `valueChanged` output or `value` input property to retrieve the current value */ FormControl: FormControl; /** * The value of the textinput */ get value(): string; set value(value: string); /** * The text content of the label for the input box */ label: string; /** * The placeholder text for the input field */ placeholder: string; /** * Optional property to show results when input box is initally focused */ showResultsOnInitialFocus: boolean; /** * Event that is fired whenever the value of the typeahead changes * e.g. selection from the dropdown or manually typed entry */ valueChanged: EventEmitter; /** * A reference to the typeahead list wrapper */ listContainer: ElementRef; /** * A reference to the typeahead list items */ listItems: QueryList; filterResult: string[]; selectedItemIndex: number; isFocused: boolean; isSilenced: boolean; isDebounced: boolean; isAlternateStatusSection: boolean; statusText: string; id: string; hintId: string; listId: string; private originalSearch; private hasBeenFocusedAtLeastOnce; private subscription; private searchTextChanged$; private selectedOption; /** * Optional function that will be executed when the user selects an item from the typeahead */ selectionAction: (selectedItemText: any) => unknown; ngOnInit(): void; ngOnDestroy(): void; focusIn(): void; focusOut(): void; textChanged: (value: string) => void; keyPressed: (event: KeyboardEvent) => void; itemSelected: (value: string) => void; performFilter(value: string): void; selectCurrentItem(): void; itemHovered(index: number): void; setStatusText: (text: string) => void; /** * Status text to be read out by screen readers */ getStatusText: () => Observable; /** * Check if the selected option is in view, and scroll if not */ updateScroll(): void; private navigateSuggestions; }