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