UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

13 lines (12 loc) 374 B
import { Root } from "protobufjs"; export declare abstract class Event<T> { protected connection: Root; protected channel: any; protected payload: T; abstract exchange: string; constructor(payload: T); init(): this; protected setup(): void; publish<Response>(options?: {}): Promise<Response>; protected parseMessage(message: any): any; }