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