var i = Object.defineProperty;
var n = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
var s = (t, e, r) => n(t, typeof e != "symbol" ? e + "" : e, r);
import h from "./index-instance.js";
class g {
  constructor() {
    s(this, "setters");
  }
  addSetter(e, r) {
    this.setters = this.setters || {}, this.setters[r] = e;
  }
  removeSetter(e) {
    delete this.setters[e];
  }
  triggerChange() {
    h.emit("change");
  }
  onChange(e) {
    return h.on("change", e);
  }
}
export {
  g as BaseStore
};
