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

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