import { Reply } from "../reply"; import { nop } from "../helpers"; import { Event } from "../event"; import { EventSink, Subscribe, Unsub } from "../types"; interface Subscription { sink: EventSink; } /** @hidden */ export default class Dispatcher { _subscribe: Subscribe; _handleEvent?: EventSink; pushing: boolean; ended: boolean; prevError: any; unsubSrc?: Unsub; subscriptions: Subscription[]; queue: Event[]; observable: O; constructor(observable: O, _subscribe: Subscribe, _handleEvent?: EventSink); hasSubscribers(): boolean; removeSub(subscription: Subscription): Subscription[]; push(event: Event): any; pushToSubscriptions(event: Event): boolean; pushIt(event: Event): Reply | undefined; handleEvent(event: Event): any; unsubscribeFromSource(): void; subscribe(sink: EventSink): typeof nop; inspect(): any; } export {};