UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

11 lines (10 loc) 672 B
import type { IMessage } from '../../definition/messages'; import type { AppInterface } from '../../definition/metadata'; import type { IRoom } from '../../definition/rooms'; import { BaseBridge } from './BaseBridge'; export declare abstract class ListenerBridge extends BaseBridge { doMessageEvent(int: AppInterface, message: IMessage): Promise<void | boolean | IMessage>; doRoomEvent(int: AppInterface, room: IRoom): Promise<void | boolean | IRoom>; protected abstract messageEvent(int: AppInterface, message: IMessage): Promise<void | boolean | IMessage>; protected abstract roomEvent(int: AppInterface, room: IRoom): Promise<void | boolean | IRoom>; }