export declare const baseGlobalPhoneNumber: RegExp; export declare const GLOBAL_PHONE_NUMBER_PATTERN: RegExp; export declare const baseUSPhoneNumber: RegExp; export declare const _US_PHONE_NUMBER_PATTERN: RegExp; export declare const US_PHONE_NUMBER_PATTERN: RegExp; export declare const PHONE_NUMBER_PATTERN: RegExp; export interface DecomposedPhoneNumber { phone?: string; countryCode?: string; areaCode: string; subscriber: string; telephonePrefix: string | undefined; lineNumber: string | undefined; extension?: string | undefined; } export declare const countryCodes: Record; export declare class PhoneNumber { phone: string | undefined; countryCode: string | undefined; country: string | undefined; areaCode: string; subscriber: string; subscriberDigits: string; telephonePrefix: string | undefined; lineNumber: string | undefined; extension: string | undefined; patternMatched: RegExp | undefined; constructor(phoneNumber: string | DecomposedPhoneNumber | PhoneNumber, patternMatched?: RegExp); private get _coreDigits(); private get _extSuffix(); private get _localDotted(); private get _localDashed(); private get _localSpaced(); get us(): boolean | "" | undefined; get hasSubscriberComponents(): boolean; /** e.g., (555) 123-4567 x89 */ get national(): string | null; /** e.g., +1 555 123 4567 x89 (spaces) */ get international(): string; /** e.g., +1-555-123-4567 x89 (dashes) */ get dashed(): string; /** e.g., +1 555.123.4567 x89 (dots) */ get dotted(): string; /** Digits only, keeps +CC if present; appends xEXT if present */ get compact(): string; /** RFC3966: tel:+1-555-123-4567;ext=89 (null if no country code) */ get rfc3966(): string | null; /** E.164: +15551234567 (null if no country code) */ get e164(): string | null; /** Numeric: 15551234567 or 15551234567.000089 **/ get numeric(): string; get number(): number; get c(): string; get a(): string; get s(): string; get p(): string | undefined; get n(): string | undefined; get x(): string; format(s: string): string; /** Default display */ toString(format?: 'phone' | 'national' | 'international' | 'dashed' | 'dotted' | 'compact' | 'rfc3966' | 'e164' | 'numeric'): string; } export declare const isPhoneNumber: (s: string) => boolean; export declare const toPhoneNumber: (s: string) => PhoneNumber; //# sourceMappingURL=phoneNumbers.d.ts.map