UNPKG

@devmehq/email-validator-js

Version:

Advanced email validation with MX records, SMTP verification, disposable email detection, batch processing, and caching. Production-ready with TypeScript support.

19 lines (18 loc) 820 B
import type { DetectedName, IDetectNameParams } from './types'; /** * Default name detection method * Attempts to extract first and last name from email local part */ export declare function defaultNameDetectionMethod(email: string): DetectedName | null; /** * Detect name from email address * @param params - Detection parameters including email and optional custom method * @returns Detected name with confidence score, or null if no name detected */ export declare function detectNameFromEmail(params: IDetectNameParams): DetectedName | null; /** * Convenience function to detect name from email string * @param email - Email address to extract name from * @returns Detected name with confidence score, or null if no name detected */ export declare function detectName(email: string): DetectedName | null;