"use strict";
function isMobileNumberValid(textValue) {
    const regex = /^(\+7|7|8)?[\s\-]?\(?[489][0-9]{2}\)?[\s\-]?[0-9]{3}[\s\-]?[0-9]{2}[\s\-]?[0-9]{2}$/;
    return regex.test(textValue);
}
function isEmailValid(textValue) {
    const regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
    return regex.test(textValue);
}
function isUrlValid(textValue) {
    let url;
    try {
        url = new URL(textValue);
    }
    catch (_) {
        return false;
    }
    return url.protocol === "http:" || url.protocol === "https:";
}
module.exports = {
    isMobileNumberValid,
    isEmailValid,
    isUrlValid
};
//# sourceMappingURL=generalUtils.js.map