import { ControlValueAccessor } from '@angular/forms'; import { Country } from '../../models/country.model'; /** * Component providing an autocomplete input to selct country and an input to type a local phone number * It returns an international phone number correctly formatted * * @example * //TODO */ export declare class PhoneInputWithCodeComponent implements ControlValueAccessor { countryList: Country[]; label: string; countryLabel: string; phoneLabel: string; selectedCountry: Country; private _internationalPhoneValue; internationalPhoneValue: string; writeValue(value: string): 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; displayFunction(item: Country): string; filterFunction(item: Country, searchTerm: string): boolean; }