import { OnInit } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { NgbTypeahead, NgbTypeaheadSelectItemEvent } from '@ng-bootstrap/ng-bootstrap'; import { Observable, Subject } from 'rxjs'; export declare class SelectComponent implements OnInit, ControlValueAccessor { instance: NgbTypeahead; /** * the list to be displayed for the user */ data: T[]; /** * if the data is array of object then which attribute of the object to be returned upon select * if not provided then will be supposed the data is array of string */ primaryKey: keyof T & string; /** * which attribute of the object to be displayed in the listed options * if not provided then will use primaryKey attribute */ display: keyof T & string; focus$: Subject; click$: Subject; option: T; random: number; isDisabled: boolean; constructor(); propagateChange: (_: any) => void; ngOnInit(): void; formatter: (option: T) => string; search: (text$: Observable) => Observable; getDisplay(option: T): string; getPrimaryKey(option: T): string; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; changed($event: NgbTypeaheadSelectItemEvent): void; setDisabledState(isDisabled: boolean): void; }