import { type IFuseOptions } from 'fuse.js'; import { FlagType, type Country, type CountryCode, type Region, type Subregion, type TranslationLanguageCode } from './types'; /** * Override where flat (image) flags are fetched from. Image flags are not * bundled with the package because of their size, so by default they are * downloaded on first use. Point this at your own host to avoid depending on * a third-party origin at runtime. */ export declare const setImageFlagsUrl: (url: string) => void; /** * Derives the flag emoji from the ISO 3166-1 alpha-2 code by mapping each * letter onto its Regional Indicator Symbol, e.g. `FR` -> 🇫🇷. * * This replaces the `node-emoji` dependency used in v2: every one of the 250 * bundled countries has a code of exactly two A-Z letters, so the mapping is * total and needs no lookup table. */ export declare const getEmojiFlag: (countryCode?: CountryCode) => string; export declare const getImageFlagAsync: (countryCode?: CountryCode) => Promise; export declare const getCountryNameAsync: (countryCode?: CountryCode, translation?: TranslationLanguageCode) => Promise; export declare const getCountryCallingCodeAsync: (countryCode: CountryCode) => Promise; export declare const getCountryCurrencyAsync: (countryCode: CountryCode) => Promise; export declare const getCountriesAsync: (flagType: FlagType, translation?: TranslationLanguageCode, region?: Region, subregion?: Subregion, countryCodes?: CountryCode[], excludeCountries?: CountryCode[], preferredCountries?: CountryCode[], withAlphaFilter?: boolean) => Promise; export declare const search: (filter?: string, data?: Country[], options?: IFuseOptions) => Country[]; export declare const getLetters: (countries: Country[]) => string[]; export interface CountryInfo { countryName: string; currency: string; callingCode: string; } export declare const getCountryInfoAsync: ({ countryCode, translation, }: { countryCode: CountryCode; translation?: TranslationLanguageCode; }) => Promise; //# sourceMappingURL=CountryService.d.ts.map