export interface EmitMessage { topic: string; [key: string]: any; } export interface EmittedMessage extends EmitMessage { subscriptionTopic: string; } export declare type HandlerFunction = (this: EmitterListener, message: EmittedMessage, context?: TContext) => Promise; declare class EmitterListener { private _id; private _fn; private _context; private _once; private _topic; constructor(topic: string, fn: HandlerFunction, context: TContext, once?: boolean); static isValid(id: string): boolean; get id(): string; get fn(): HandlerFunction; get context(): any; get once(): boolean; get topic(): string; } export default EmitterListener; //# sourceMappingURL=emitterListener.d.ts.map