"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GlobalState = void 0;
class GlobalState {
    static setValue(key, value) {
        GlobalState.store[key] = value;
    }
    static getValue(key, defaultValue) {
        if (!GlobalState.hasValue(key) && defaultValue)
            return defaultValue;
        return GlobalState.store[key];
    }
    static hasValue(key) {
        return Object.prototype.hasOwnProperty.call(GlobalState.store, key);
    }
}
exports.GlobalState = GlobalState;
GlobalState.store = {};
