import { TYPE as e } from "../constants.js";
class h {
  constructor() {
    this.type = e.ALL;
  }
  /* API */
  get() {
    return this.type;
  }
  set(t) {
    if (this.type && this.type !== t)
      throw new Error("Cannot change both RGB and HSL channels at the same time");
    this.type = t;
  }
  reset() {
    this.type = e.ALL;
  }
  is(t) {
    return this.type === t;
  }
}
export {
  h as default
};
