UNPKG

@wulperstudio/cms

Version:
17 lines (16 loc) 1.48 kB
import { InputPhoneContinentType, InputPhoneCountry } from '../constants'; type FilterCountriesOptions = { onlyCountries?: readonly InputPhoneCountry[]; excludedCountries?: readonly InputPhoneCountry[]; preferredCountries?: readonly InputPhoneCountry[]; continents?: readonly InputPhoneContinentType[]; }; export declare function getCallingCodeOfCountry(isoCode: InputPhoneCountry): string; export declare function sortedPreferredCountries(countries: readonly InputPhoneCountry[], preferredCountries: readonly InputPhoneCountry[]): readonly InputPhoneCountry[]; export declare function getCountriesOfContinents(continents: readonly InputPhoneContinentType[]): readonly InputPhoneCountry[]; export declare function getOnlyCountries(countries: readonly InputPhoneCountry[], onlyCountries: readonly InputPhoneCountry[]): readonly InputPhoneCountry[]; export declare function excludeCountries(countries: readonly InputPhoneCountry[], excludedCountries?: readonly InputPhoneCountry[]): readonly InputPhoneCountry[]; export declare function filterCountries(countries: readonly InputPhoneCountry[], options: FilterCountriesOptions): readonly InputPhoneCountry[]; export declare function matchContinentsIncludeCountry(continents: InputPhoneContinentType[], isoCode: InputPhoneCountry): boolean; export declare function sortAlphabeticallyCountryCodes(countryCodes: readonly InputPhoneCountry[], displayNames: Intl.DisplayNames): readonly InputPhoneCountry[]; export {};