/** * The email address in the answer, lowercased, or ''. At / arroba and dot / punto may be spoken, and the name before * the @ may come in several pieces ("J. A Garcia at example.com", "j u a n", "Maria jose@example.com"): every piece * back to the first lead-in word ("my email is", "mi correo es") is kept and joined. On a call the address is read * back for a YES / NO, so a misheard piece can be corrected; a dropped one could not. Accents are dropped from the * name (an address cannot carry them), and only the last @ counts. * With `{literal:true}`, a complete visible address wins over surrounding prose; absent one, * the same spoken/spelled parsing applies. Distinct visible addresses are ambiguous and return empty. */ export function readEmail(text: any, { literal }?: { literal?: boolean | undefined; }): string; /** The 10-digit North American number in the answer (a leading 1 dropped), or ''. */ export function readPhone(text: any): string; /** * A phone number from outside the US / Canada in the answer, as its digits with the country code, or ''. With an * explicit prefix ("+", "plus", "más", "00") 8-15 digits; without one 11-13 digits not starting with 1 (a card or an * account number is not mistaken for one). US / Canada numbers are readPhone's. The flows say what such a number * cannot be used for instead of "I didn't get that" (owner, 2026-10-14). */ export function readInternationalPhone(text: any): string; /** Whether the caller's own number (cargo.callerId) is from outside the US / Canada: on a call, a real caller ID. */ export function callerIsInternational(cargo: any): boolean; /** * What the customer identified themselves with: { kind: 'account' | 'phone' | 'international_phone' | 'email', value } or * null. * accountPattern (a regex source, e.g. '^5\\d{6,7}$') is the tenant's account-number shape; its digits win first. */ export function readIdentifier(text: any, accountPattern?: string): { kind: string; value: string; } | null; /** * The last four characters of a number (card, account, phone, tracking) as said to the customer: spaced one by one on a * call ("5, 4, 7, 5"), as written otherwise ("5475"). Written ~25 times inline across the flow sets before it. */ export function last4(value: any, voice: any): string; /** * An email said back to the customer without reading all of it out. On a call: its first two characters spaced * one by one and its domain ("starting with r, o, at gmail.com" / "que empieza con r, o, arroba gmail.com"): "ending * in @gmail.com" alone is ambiguous on a call, and "ro***" makes the speech engine read the asterisks. Written: * "ro***@gmail.com". '' for anything that is not an email. */ export function maskEmail(email: any, voice: any, lang?: string): string; /** * The number we can text the caller at, 10 digits, or '': ONE rule for offering TEXT and for sending one. Only on a * call with a sender (cargo.twilioNumber), a US / Canada caller ID, and not the number a code could not be texted to * (cargo.otpUndeliverableTo). A number from another country used to be cut to its last 10 digits and offered TEXT, * which then failed (dev calls from +52, 2026-10-13). */ export function callerTextNumber(cargo: any): string; /** Where a text to the customer can go, 10 digits or '': the verified cell, else the caller (callerTextNumber). */ export function textDestination(cargo: any): string; //# sourceMappingURL=contact.d.ts.map