import { Operator } from '../Operator'; import { Observable } from '../Observable'; import { Subscriber } from '../Subscriber'; import { Subscription } from '../Subscription'; import { OuterSubscriber } from '../OuterSubscriber'; import { InnerSubscriber } from '../InnerSubscriber'; /** * @param project * @param seed * @param concurrent * @return {Observable|WebSocketSubject|Observable} * @method mergeScan * @owner Observable */ export declare function mergeScan(this: Observable, project: (acc: R, value: T) => Observable, seed: R, concurrent?: number): Observable; export declare class MergeScanOperator implements Operator { private project; private seed; private concurrent; constructor(project: (acc: R, value: T) => Observable, seed: R, concurrent: number); call(subscriber: Subscriber, source: any): any; } /** * We need this JSDoc comment for affecting ESDoc. * @ignore * @extends {Ignored} */ export declare class MergeScanSubscriber extends OuterSubscriber { private project; private acc; private concurrent; private hasValue; private hasCompleted; private buffer; private active; protected index: number; constructor(destination: Subscriber, project: (acc: R, value: T) => Observable, acc: R, concurrent: number); protected _next(value: any): void; private _innerSub(ish, value, index); protected _complete(): void; notifyNext(outerValue: T, innerValue: R, outerIndex: number, innerIndex: number, innerSub: InnerSubscriber): void; notifyComplete(innerSub: Subscription): void; }