UNPKG

vulcain-corejs

Version:
15 lines (14 loc) 538 B
/// <reference types="rx/rx.time-lite.d" /> import { ActionData, ActionResponse, CommandManager, EventData } from './actions'; import * as RX from 'rx'; export declare class MessageBus { private manager; private commandBus; private eventBus; private _events; getEventsQueue(domain: string): RX.Observable<EventData>; constructor(manager: CommandManager, hasAsyncActions: boolean); private consumeEventAsync(event); pushTask(command: ActionData): void; sendEvent(response: ActionResponse<any>): void; }