import { ControlValueAccessor } from '@angular/forms'; import { ModalController } from 'ionic-angular'; /** * Component providing a searchbar input with autocomplete * * @example * //TODO */ export declare class AutocompleteComponent implements ControlValueAccessor { private modalCtrl; /** * The component needs a label option to fill the placeholder */ label: string; /** * Boolean that indicates if the component will accept custom value or not. */ allowCustom: boolean; display: Function; filter: Function; factory: Function; private _list; list: T[]; displayedValue: string; private isModalPresented; /** * Address value */ private _itemValue; private itemValue; constructor(modalCtrl: ModalController); /** * This method is part of ControlValueAccessor interface. * Its role is to set value from the model to the DOM * * @param value Value given from the model */ writeValue(value: T): void; /** * This method is part of ControlValueAccessor interface. * Its role is to set the function that will propagate changes from the DOM to the model. * * @param fn {function} Angular internal function */ registerOnChange(fn: any): void; /** * This method is part of ControlValueAccessor interface. * Not used here */ registerOnTouched(): void; /** * Container for the propagation function. */ propagateChange: (_: any) => void; /** * Open a modal with searchbar and results list. */ openModal(): void; removeTags(string: string): string; checkValueValidity(): boolean; }