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

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