UNPKG

@rocket.chat/apps-engine

Version:

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

10 lines (9 loc) 561 B
import type { IMessage } from '../../definition/messages'; import type { AppInterface } from '../../definition/metadata'; import type { IRoom } from '../../definition/rooms'; import type { UIKitIncomingInteraction } from '../../definition/uikit'; export interface IListenerBridge { messageEvent(int: AppInterface, message: IMessage): Promise<void | boolean | IMessage>; roomEvent(int: AppInterface, room: IRoom): Promise<void | boolean | IRoom>; uiKitInteractionEvent(int: AppInterface, action: UIKitIncomingInteraction): Promise<void | boolean>; }