export declare const CountryCodeList: readonly ["AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "VG", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "BQ", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "CD", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "SZ", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "HN", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "CI", "JM", "JP", "JE", "JO", "KZ", "KE", "XK", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "KP", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "CG", "RO", "RU", "RW", "RE", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "KR", "SS", "ES", "LK", "SD", "SR", "SJ", "SE", "CH", "SY", "ST", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "VI", "UY", "UZ", "VU", "VA", "VE", "VN", "WF", "EH", "YE", "ZM", "ZW", "KI", "HK", "AX"]; export type CountryCode = (typeof CountryCodeList)[number]; export type CallingCode = string; export type CurrencyCode = string; /** * `common` is present for every country; the other translations are not, so * they are optional. Consumers should fall back to `common`, which is what * `getCountryName` does internally. */ export type TranslationLanguageCodeMap = { common: string; } & Partial>; export interface Country { region: Region; subregion: Subregion; currency: CurrencyCode[]; callingCode: CallingCode[]; flag: string; name: TranslationLanguageCodeMap | string; cca2: CountryCode; } export declare const RegionList: readonly ["Africa", "Americas", "Antarctic", "Asia", "Europe", "Oceania"]; export type Region = (typeof RegionList)[number]; export declare const SubregionList: readonly ["Southern Asia", "Southern Europe", "Northern Africa", "Polynesia", "Middle Africa", "Caribbean", "South America", "Western Asia", "Australia and New Zealand", "Western Europe", "Eastern Europe", "Central America", "Western Africa", "North America", "Southern Africa", "Eastern Africa", "South-Eastern Asia", "Eastern Asia", "Northern Europe", "Melanesia", "Micronesia", "Central Asia", "Central Europe"]; export type Subregion = (typeof SubregionList)[number]; /** * Translations actually present in the bundled country data. * * v2 declared `svk` and `isr`, neither of which exists in the data, so * selecting them silently fell back to English. It also omitted six * translations that are present, making them unreachable from TypeScript. * `svk` was a typo for `slk`, the ISO 639-3 code for Slovak. * * Coverage is per country and falls back to `common` where a translation is * missing; `cym` (Welsh) in particular only covers 62 of 250 countries. */ export declare const TranslationLanguageCodeList: readonly ["common", "ces", "cym", "deu", "est", "fin", "fra", "hrv", "ita", "jpn", "kor", "nld", "pol", "por", "rus", "slk", "spa", "urd", "zho"]; export type TranslationLanguageCode = (typeof TranslationLanguageCodeList)[number]; export declare enum FlagType { FLAT = "flat", EMOJI = "emoji" } export declare const isCountryCode: (str: string) => str is CountryCode; //# sourceMappingURL=types.d.ts.map