"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "default", {
    enumerable: true,
    get: function() {
        return nodeVersionUse;
    }
});
var _workerts = /*#__PURE__*/ _interop_require_default(require("./worker.js"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
function nodeVersionUse(versionExpression, command, args, options, callback) {
    callback = typeof options === 'function' ? options : callback;
    options = typeof options === 'function' ? {} : options || {};
    if (typeof callback === 'function') return (0, _workerts.default)(versionExpression, command, args, options, callback);
    return new Promise(function(resolve, reject) {
        return (0, _workerts.default)(versionExpression, command, args, options, function(err, result) {
            err ? reject(err) : resolve(result);
        });
    });
}
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }