import { OnInit } from '@angular/core'; import { MatAutocompleteTrigger } from '@angular/material/autocomplete'; import { FormGroup, AbstractControl } from '@angular/forms'; import { SelectOption, AutocompleteFieldConfig } from '../../models'; import { Observable } from 'rxjs'; export declare class AutocompleteFieldComponent implements OnInit { autoInput: MatAutocompleteTrigger; config: AutocompleteFieldConfig; group: FormGroup; options$: Observable; filteredOptions$: Observable; readonly control: AbstractControl; constructor(); ngOnInit(): void; /** * The material autocomplete defaults to displaying the options value instead of its label. * We only have the value from the selected option to work with, so we have to pass the options * through a function called in the template and return the function that the material displayWith * input is expecting. * @param options the array of options to search for option with corresponding value */ displayLabel(options: SelectOption[]): (value: any) => string; /** * To follow ARIA standards we want to select the active option on blur. * @param event blur event that triggers the handle blur, TODO: remove this parameter if not used by 7/4/19 */ handleBlur(_event: FocusEvent): void; /** * A basic filter function that filters the search string against the label of the options object * @param options the array of options to filter * @param searchString the string from the input */ defaultFilterFunction(options: SelectOption[], searchString: string): SelectOption[]; }