(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "./hexToRgb", "./rgbToHsv"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.hexToHsv = void 0;
    var hexToRgb_1 = require("./hexToRgb");
    var rgbToHsv_1 = require("./rgbToHsv");
    var hexToHsv = function (hex) {
        var rgb = (0, hexToRgb_1.hexToRgb)(hex);
        if (!rgb) {
            return null;
        }
        return (0, rgbToHsv_1.rgbToHsv)(rgb);
    };
    exports.hexToHsv = hexToHsv;
});
