/** * Format phone number as the user types with international format * Applies country-specific formatting rules and includes dial code */ export declare const formatPhoneAsYouType: (value: string, countryCode: string) => string; /** * Convert national number to E.164 format * Returns null if the number is invalid */ export declare const toE164: (nationalNumber: string, countryCode: string) => string | null; /** * Parse E.164 number and extract country code and national number */ export declare const parseE164: (e164Number: string) => { countryCode: string; nationalNumber: string; } | null; /** * Get example formatted phone number for a country in international format * Returns a placeholder string for the input field with dial code */ export declare const getPlaceholder: (countryCode: string) => string; /** * Validate if a phone number is valid for a given country */ export declare const isValidPhoneNumber: (value: string, countryCode: string) => boolean; /** * Get the expected national number digit length for a country. * Derived from the example mobile number. Returns Infinity when unknown. */ export declare const getExpectedDigitLength: (countryCode: string) => number; //# sourceMappingURL=phoneFormatter.d.ts.map