UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

10 lines (9 loc) 447 B
export declare const getPhoneUtil: () => Promise<any>; export declare const validatePhoneNumber: (phoneNumber: string) => Promise<any>; /** * Format a phone number to international format * @param phoneNumber The original phone number * @param defaultCountry Default country code (ISO 3166-1 alpha-2) * @returns Formatted phone number */ export declare const formatPhone: (phoneNumber: string | undefined, defaultCountry?: string) => string;