UNPKG

543 BTypeScriptView Raw
1export declare function isDisposableEmail(emailOrDomain: string): boolean;
2export declare function isFreeEmail(emailOrDomain: string): boolean;
3interface IVerifyEmailResult {
4 validFormat: boolean;
5 validMx: boolean | null;
6 validSmtp: boolean | null;
7}
8interface IVerifyEmailParams {
9 emailAddress: string;
10 timeout?: number;
11 verifyMx?: boolean;
12 verifySmtp?: boolean;
13 debug?: boolean;
14 smtpPort?: number;
15}
16export declare function verifyEmail(params: IVerifyEmailParams): Promise<IVerifyEmailResult>;
17export {};