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

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