import { State } from "./state";
const singleton = Symbol();
const singletonEnforcer = Symbol();
export class StateService extends State {
    constructor(enforcer) {
        super();
        if (enforcer !== singletonEnforcer) {
            throw new Error('Cannot construct singleton');
        }
        this._type = 'ConfigService';
    }
    static get instance() {
        if (!this[singleton]) {
            this[singleton] = new StateService(singletonEnforcer);
        }
        return this[singleton];
    }
    get type() {
        return this._type;
    }
    set type(value) {
        this._type = value;
    }
}
//# sourceMappingURL=state-service.js.map