/** * European Countries Data * Contains phone prefix information, validation rules, and flags for all European countries */ export interface CountryData { code: string; name: string; prefix: string; flag: string; mobilePrefix: string[]; lengthMin: number; lengthMax: number; } /** * Complete list of European countries with phone validation rules * Includes EU members, EEA, and other European countries */ export declare const EUROPEAN_COUNTRIES: CountryData[]; /** * Default country code to use as fallback */ export declare const DEFAULT_COUNTRY_CODE = "RO"; /** * Get a country by its ISO code * @param code - ISO 3166-1 alpha-2 code * @returns CountryData or undefined if not found */ export declare function getCountryByCode(code: string): CountryData | undefined; /** * Get a country by its phone prefix * @param prefix - Phone prefix (with or without +) * @returns CountryData or undefined if not found */ export declare function getCountryByPrefix(prefix: string): CountryData | undefined; /** * Filter countries by allowed codes * @param allowedCodes - Array of ISO codes, comma-separated string, or null/undefined for all * @returns Filtered array of CountryData */ export declare function getFilteredCountries(allowedCodes?: string[] | string | null): CountryData[]; /** * Validate a phone number for a specific country * @param phoneNumber - Phone number without country prefix * @param country - CountryData to validate against * @returns Validation result object */ export declare function validatePhoneNumber(phoneNumber: string, country: CountryData): { isValid: boolean; error?: string; }; /** * Get the full phone number with country prefix * @param phoneNumber - Phone number without country prefix * @param country - CountryData * @returns Full phone number with prefix */ export declare function getFullPhoneNumber(phoneNumber: string, country: CountryData): string; /** * Parse a full phone number and extract country and local number * @param fullNumber - Full phone number with country prefix * @returns Object with country and local number, or null if not found */ export declare function parsePhoneNumber(fullNumber: string): { country: CountryData; localNumber: string; } | null;