import { NgZone } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { ModalController } from 'ionic-angular'; /** * Component providing a searchbar input which autocomplete returned by Google Maps API * * @example * //TODO */ export declare class AddressAutocompleteComponent implements ControlValueAccessor { private modalCtrl; private ngZone; /** * 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; /** * Boolean that indicates if the component will return the full detailed address or not. */ fullAddressDetails: boolean; /** * Address value */ private _addressValue; private isModalPresented; private addressValue; constructor(modalCtrl: ModalController, ngZone: NgZone); /** * Open a modal with searchbar and results list. */ openModal(): void; /** * 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: any): 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; }