declare type ICallbackMethod = (returnValue: boolean) => void; export declare const EMAIL_REGEX: RegExp; /** * isEmailValid is the main function of this module, it validates an email with * a simple regex * * @param {String} email Email that should be validated * @param {Function} [cb] Optional callback method * * @returns {Boolean} Is the email valid? */ export declare const isEmailValid: (email: string, cb?: ICallbackMethod) => boolean; export default isEmailValid; /** * isEmail is an alias for isEmailValid * * @returns {Boolean} */ export declare const isEmail: (email: string, cb?: ICallbackMethod) => boolean;