export type NormalizeResult = { ok: true; value: string; } | { ok: false; error: string; }; /** * Normalize a phone number to E.164 format using Google's libphonenumber * * This implementation matches the Zapier approach: * - International numbers (starting with +) work without country code * - Local/national numbers REQUIRE a country code to be specified * - Properly validates numbers according to each country's rules * * @param input - Phone number in any format (with spaces, hyphens, brackets, etc.) * @param defaultCountry - Country code (e.g., 'AU', 'US', 'GB', 'NZ') - REQUIRED for local numbers * @returns Normalized phone number in E.164 format or error * * @example * normalizePhoneNumberToE164('+61 437 536 808') // { ok: true, value: '+61437536808' } * normalizePhoneNumberToE164('0437 536 808', 'AU') // { ok: true, value: '+61437536808' } * normalizePhoneNumberToE164('022 045 0450', 'NZ') // { ok: true, value: '+6422045045' } * normalizePhoneNumberToE164('0437 536 808') // { ok: false, error: 'Country required...' } */ export declare function normalizePhoneNumberToE164(input: string, defaultCountry?: string): NormalizeResult;