const singleton = Symbol();
const singletonEnforcer = Symbol();
export class StateService {
    // _store: any = {};
    // _defaults: any;
    constructor(enforcer) {
        if (enforcer !== singletonEnforcer) {
            throw new Error('Cannot construct singleton');
        }
        this._type = 'StateService';
    }
    static get instance() {
        if (!this[singleton]) {
            this[singleton] = new StateService(singletonEnforcer);
        }
        return this[singleton];
    }
    // public get(key: any) {
    //     return this._store[key];
    // }
    //
    // public set(key: any, value: any) {
    //     return this._store[key] = value;
    // }
    get type() {
        return this._type;
    }
    set type(value) {
        this._type = value;
    }
}
//# sourceMappingURL=state-service.js.map