@mikkelscheike/email-provider-links
Version:
TypeScript library for email provider detection with 140 providers (259 domains), concurrent DNS resolution, alias normalization, and HTTPS login URL validation for login and password reset flows
35 lines • 1.09 kB
TypeScript
/**
* Email validation constants based on RFC 5321
*
* These limits are defined in RFC 5321 Section 4.5.3.1:
* - Maximum total email length: 254 characters
* - Maximum local part length: 64 characters
* - Maximum domain length: 253 characters
*/
export declare const EmailLimits: {
/** Maximum total email address length (local + @ + domain) */
readonly MAX_EMAIL_LENGTH: 254;
/** Maximum local part length (before @) */
readonly MAX_LOCAL_PART_LENGTH: 64;
/** Maximum domain length (after @) */
readonly MAX_DOMAIN_LENGTH: 253;
};
/**
* Memory calculation constants
*/
export declare const MemoryConstants: {
/** Bytes per kilobyte */
readonly BYTES_PER_KB: 1024;
/** Kilobytes per megabyte */
readonly KB_PER_MB: 1024;
};
/**
* DNS detection defaults
*/
export declare const DnsConstants: {
/** Default DNS query timeout in milliseconds */
readonly DEFAULT_TIMEOUT_MS: 5000;
/** Max DNS detection attempts per process per rolling minute */
readonly MAX_REQUESTS_PER_MINUTE: 10;
};
//# sourceMappingURL=constants.d.ts.map