"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../index");
var singleton = Symbol();
var singletonEnforcer = Symbol();
var TranslateService = /** @class */ (function (_super) {
    __extends(TranslateService, _super);
    function TranslateService(enforcer) {
        var _this = _super.call(this) || this;
        if (enforcer !== singletonEnforcer) {
            throw new Error('Cannot construct singleton');
        }
        _this._type = 'TranslateService';
        return _this;
    }
    Object.defineProperty(TranslateService, "instance", {
        get: function () {
            if (!this[singleton]) {
                this[singleton] = new TranslateService(singletonEnforcer);
            }
            return this[singleton];
        },
        enumerable: true,
        configurable: true
    });
    TranslateService.prototype.singletonMethod = function () {
        return 'singletonMethod';
    };
    TranslateService.staticMethod = function () {
        return 'staticMethod';
    };
    Object.defineProperty(TranslateService.prototype, "type", {
        get: function () {
            return this._type;
        },
        set: function (value) {
            this._type = value;
        },
        enumerable: true,
        configurable: true
    });
    return TranslateService;
}(index_1.Translate));
exports.TranslateService = TranslateService;
//# sourceMappingURL=translate-service.js.map