UNPKG

email-domain-check

Version:

Comprehensive email domain validation library with DNS, MX, SMTP, DKIM, DMARC and MTA-STS support.

18 lines (17 loc) 441 B
export type Target = string | URL | Address; export declare enum IPKind { None = 0, IPv4 = 4, IPv6 = 6 } export declare class Address { readonly source: string; readonly ipKind: IPKind; readonly user?: string; readonly hostname: string; constructor(mailOrHost: string); static loadFromTarget(target: Target): Address; get isIP(): boolean; get hasPunycode(): boolean; get isLocal(): boolean; }