/** * Phone Number Formatting Constants * * Constants for phone number validation and formatting across different countries. * * @module locale/phone */ /** * Phone number formats and validation */ export declare const PHONE_FORMATS: { /** * International prefix */ readonly INTERNATIONAL_PREFIX: "+"; /** * International direct dialing prefix */ readonly IDD_PREFIX: "00"; /** * US country code */ readonly US_COUNTRY_CODE: "1"; /** * UK country code */ readonly UK_COUNTRY_CODE: "44"; /** * Germany country code */ readonly DE_COUNTRY_CODE: "49"; /** * France country code */ readonly FR_COUNTRY_CODE: "33"; /** * Japan country code */ readonly JP_COUNTRY_CODE: "81"; /** * China country code */ readonly CN_COUNTRY_CODE: "86"; /** * India country code */ readonly IN_COUNTRY_CODE: "91"; /** * Brazil country code */ readonly BR_COUNTRY_CODE: "55"; /** * US phone number length (without country code) */ readonly US_PHONE_LENGTH: 10; /** * UK phone number length (without country code) */ readonly UK_PHONE_LENGTH: 10; /** * International phone minimum length */ readonly MIN_PHONE_LENGTH: 7; /** * International phone maximum length */ readonly MAX_PHONE_LENGTH: 15; /** * E.164 format maximum length (with +) */ readonly E164_MAX_LENGTH: 16; /** * E.164 format minimum length (with +) */ readonly E164_MIN_LENGTH: 8; /** * Area code length (US) */ readonly US_AREA_CODE_LENGTH: 3; /** * Exchange code length (US) */ readonly US_EXCHANGE_CODE_LENGTH: 3; /** * Line number length (US) */ readonly US_LINE_NUMBER_LENGTH: 4; /** * Extension maximum length */ readonly MAX_EXTENSION_LENGTH: 6; /** * Country code maximum length */ readonly MAX_COUNTRY_CODE_LENGTH: 3; /** * National number maximum length */ readonly MAX_NATIONAL_NUMBER_LENGTH: 15; }; /** * Phone number format patterns */ export declare const PHONE_PATTERNS: { /** * US phone format pattern */ readonly US_FORMAT: "(XXX) XXX-XXXX"; /** * UK phone format pattern */ readonly UK_FORMAT: "XXXX XXX XXXX"; /** * International format pattern */ readonly INTERNATIONAL_FORMAT: "+X XXX XXX XXXX"; /** * E.164 format pattern */ readonly E164_FORMAT: "+XXXXXXXXXXXX"; /** * Extension format */ readonly EXTENSION_FORMAT: "ext. XXXX"; }; /** * Type exports */ export type PhoneFormat = (typeof PHONE_FORMATS)[keyof typeof PHONE_FORMATS]; export type PhonePattern = (typeof PHONE_PATTERNS)[keyof typeof PHONE_PATTERNS]; //# sourceMappingURL=phone.d.ts.map