import {
  ScriptingObjectNames
} from "@elliemae/pui-scripting-object";
import { ScriptingObject, Event } from "@elliemae/microfe-common";
class Global extends ScriptingObject {
  #data = /* @__PURE__ */ new Map();
  constructor() {
    super("Global");
  }
  Change = new Event({
    name: "Change",
    objectId: ScriptingObjectNames.Global
  });
  set = (key, value) => {
    this.#data.set(key, value);
    return Promise.resolve();
  };
  get = (key) => Promise.resolve(this.#data.get(key) || "");
}
export {
  Global
};
