import { ControlValueAccessor } from '@angular/forms'; /** * This components aims to provide an input that will display a national phone number while you're typing * but will save an international (E164) phone number . * It's based on google-libphonenumber. * * @example * */ export declare class PhoneInputComponent implements ControlValueAccessor { label: string; private _countryCode; countryCode: string; /** * The phone value stored in the model */ private _phoneValue; /** * The phone value as it will be displayed in the DOM */ private _displayedPhoneValue; /** * Instance of the Google Phonenumber utils */ private phoneUtil; /** * Phone number object in google format */ private number; phoneValue: string; displayedPhoneValue: string; /** * 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; }