export function validateEmail(email) {
    var regex = /^[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;
    var emailParts = email.split("@");
    if (emailParts.length !== 2 ||
        emailParts[0].length > 64 ||
        emailParts[1].length > 255) {
        return false;
    }
    var domainParts = emailParts[1].split(".");
    if (domainParts.some(function (part) { return part.length > 63; })) {
        return false;
    }
    return regex.test(email);
}
//# sourceMappingURL=validateEmail.js.map