UNPKG

@rocket.chat/apps-engine

Version:

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

21 lines (20 loc) 980 B
import type { IRoomRead } from '../../definition/accessors'; import type { IMessage } from '../../definition/messages'; import type { IRoom } from '../../definition/rooms'; import type { IUser } from '../../definition/users'; import type { RoomBridge } from '../bridges'; export declare class RoomRead implements IRoomRead { private roomBridge; private appId; constructor(roomBridge: RoomBridge, appId: string); getById(id: string): Promise<IRoom>; getCreatorUserById(id: string): Promise<IUser>; getByName(name: string): Promise<IRoom>; getCreatorUserByName(name: string): Promise<IUser>; getMessages(roomId: string): Promise<IterableIterator<IMessage>>; getMembers(roomId: string): Promise<Array<IUser>>; getDirectByUsernames(usernames: Array<string>): Promise<IRoom>; getModerators(roomId: string): Promise<Array<IUser>>; getOwners(roomId: string): Promise<Array<IUser>>; getLeaders(roomId: string): Promise<Array<IUser>>; }