import { ElementRef, QueryList } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { NwbOptionComponent } from './option.component'; import { Observable } from 'rxjs'; export declare class NwbDropdownComponent implements ControlValueAccessor { private _elementRef; isLoading: boolean; /** Any classes to add to the button element inside the dropdown */ classes?: string; /** Disable the dropdown */ disabled?: boolean; config: NwbDropdownConfig; _options: QueryList; isActive: boolean; currentText: any; private _onChanged; private _onTouched; private currentValue; constructor(_elementRef: ElementRef); writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; _click(ev: UIEvent): void; options: QueryList; private _updateOptions; private _setValue; selectOption(option: NwbOptionComponent): void; toggleActive(): void; } export interface NwbDropdownConfig { /** Data to pass as the second argument for the handler method if any **/ data?: any; /** * handler method to call on change. * This allows you to perform any action before setting new value to the model * It has to return a boolean observable. If the returned value is true then the model will change. */ handler?: (value: any, data: any) => Observable; }