/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
var ContentLoadingController = /** @class */ (function () {
    function ContentLoadingController() {
        this.showLoadingSource = new Subject();
        this.hideLoadingSource = new Subject();
        this.showLoading = this.showLoadingSource.asObservable();
        this.hideLoading = this.hideLoadingSource.asObservable();
    }
    /**
     * @param {?=} text
     * @return {?}
     */
    ContentLoadingController.prototype.show = /**
     * @param {?=} text
     * @return {?}
     */
    function (text) {
        this.showLoadingSource.next(text);
    };
    /**
     * @return {?}
     */
    ContentLoadingController.prototype.hide = /**
     * @return {?}
     */
    function () {
        this.hideLoadingSource.next();
    };
    ContentLoadingController.decorators = [
        { type: Injectable },
    ];
    /** @nocollapse */
    ContentLoadingController.ctorParameters = function () { return []; };
    return ContentLoadingController;
}());
export { ContentLoadingController };
function ContentLoadingController_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    ContentLoadingController.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    ContentLoadingController.ctorParameters;
    /** @type {?} */
    ContentLoadingController.prototype.showLoading;
    /** @type {?} */
    ContentLoadingController.prototype.hideLoading;
    /** @type {?} */
    ContentLoadingController.prototype.showLoadingSource;
    /** @type {?} */
    ContentLoadingController.prototype.hideLoadingSource;
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1sb2FkaW5nLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFuYm8vdWktbmF0aXZlLyIsInNvdXJjZXMiOlsibGliL290aGVyL2NvbnRlbnQtbG9hZGluZy9jb250ZW50LWxvYWRpbmcuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFB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