"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const constants = require("./dist-constants.cjs");
class Type {
  constructor() {
    this.type = constants.TYPE.ALL;
  }
  /* API */
  get() {
    return this.type;
  }
  set(type) {
    if (this.type && this.type !== type)
      throw new Error("Cannot change both RGB and HSL channels at the same time");
    this.type = type;
  }
  reset() {
    this.type = constants.TYPE.ALL;
  }
  is(type) {
    return this.type === type;
  }
}
exports.default = Type;
//# sourceMappingURL=dist-channels-type.cjs.map
