/** * Geodata — CDN-backed country/region data. * * Instead of bundling the 775KB iso3166-2-db package, we fetch slim JSON * from Vercel Blob CDN on demand: * - countries.json (~10KB) — fetched once on first getCountries() call * - regions.json (~95KB) — fetched lazily on first getStatesForCountry() call * * Both are cached in memory after first fetch. The API surface is identical * to the previous static-import version so all consumers work unchanged. */ export declare const AVAILABLE_LANGUAGES: readonly ["en", "ru", "de", "da", "fr", "es", "zh", "hi", "pt", "ja", "ar", "it", "he"]; export type SupportedLanguage = typeof AVAILABLE_LANGUAGES[number]; export interface Country { code: string; name: string; iso3?: string; numeric?: number; uniqueKey?: string; } export interface State { code: string; name: string; countryCode: string; uniqueKey?: string; } export declare function ensureCountriesLoaded(language?: SupportedLanguage): Promise; export declare function ensureRegionsLoaded(language?: SupportedLanguage): Promise; export declare function ensureGeoDataLoaded(language?: SupportedLanguage): Promise; export declare const getCountries: (language?: SupportedLanguage) => Country[]; export declare const getStatesForCountry: (countryCode: string, language?: SupportedLanguage) => State[]; export declare const getAllStates: (language?: SupportedLanguage) => State[]; export declare const findCountryByName: (countryName: string, language?: SupportedLanguage) => Country | null; export declare const findRegionByCode: (regionCode: string, language?: SupportedLanguage) => State | null; export declare const isValidCountryCode: (countryCode: string, language?: SupportedLanguage) => boolean; export declare const isValidStateCode: (countryCode: string, stateCode: string, language?: SupportedLanguage) => boolean; export declare const getCountryWithRegions: (countryCode: string, language?: SupportedLanguage) => { country: { code: string; name: string; iso3: string | undefined; numeric: number | undefined; uniqueKey: string; }; regions: State[]; } | null; export declare function registerLanguage(_language: SupportedLanguage, _database: any): void; export declare function isLanguageRegistered(language: SupportedLanguage): boolean; export declare function getRegisteredLanguages(): SupportedLanguage[]; export declare function importLanguage(language: SupportedLanguage): Promise;