import { VerificationMethod } from "./types"; /** * Regular expressions for contact validation */ export declare const phoneRegex: RegExp; export declare const emailRegex: RegExp; /** * Detect the type of contact value * @param value - The contact value to check (email or phone number) * @returns The contact type: 'EMAIL', 'PHONE', 'WHATSAPP', or 'UNKNOWN' */ export declare const detectContactType: (value: string) => "EMAIL" | "PHONE" | "WHATSAPP" | "UNKNOWN"; /** * Validate if a contact value is valid (either email or phone) * @param value - The contact value to validate * @returns True if valid email or phone, false otherwise */ export declare const validateContactValue: (value: string) => boolean; export declare const getVerificationMethod: () => VerificationMethod; export declare const generateOTP: (length?: number) => string; export declare const getOTPExpiry: (minutes?: number) => Date; export declare const sendSMS: (phoneNumber: string, message: string) => Promise; export declare const sendEmail: (to: string, subject: string, html: string) => Promise; export declare const sendVerificationCode: (method: VerificationMethod, target: string, otp: string) => Promise;