import { CountryCode } from 'libphonenumber-js/min'; /** * Country data with dial codes and flag emoji */ interface Country { /** Country name in English */ name: string; /** ISO 3166-1 alpha-2 country code */ iso: CountryCode; /** International dial code (without +) */ dialCode: string; /** Flag emoji */ flag: string; /** Priority for sorting (lower = higher priority) */ priority?: number; } /** * Comprehensive list of countries with dial codes * Sorted alphabetically by name */ declare const countries: Country[]; /** * Map of ISO codes to countries for O(1) lookup */ declare const countryByIso: Map; /** * Map of dial codes to countries (first match for ambiguous codes) */ declare const countryByDialCode: Map; /** * Get country by ISO code */ declare function getCountryByIso(iso: CountryCode): Country | undefined; /** * Get countries by dial code (may return multiple for shared codes like +1) */ declare function getCountriesByDialCode(dialCode: string): Country[]; /** * Search countries by name or dial code */ declare function searchCountries(query: string): Country[]; /** * Get sorted countries with priority countries first */ declare function getSortedCountries(priorityCountries?: CountryCode[]): Country[]; export { type Country, countries, countryByDialCode, countryByIso, getCountriesByDialCode, getCountryByIso, getSortedCountries, searchCountries };