UNPKG

@rocket.chat/apps-engine

Version:

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

13 lines (12 loc) 540 B
import type { IUserRead } from '../../definition/accessors'; import type { IUser } from '../../definition/users'; import type { UserBridge } from '../bridges/UserBridge'; export declare class UserRead implements IUserRead { private userBridge; private appId; constructor(userBridge: UserBridge, appId: string); getById(id: string): Promise<IUser>; getByUsername(username: string): Promise<IUser>; getAppUser(appId?: string): Promise<IUser | undefined>; getUserUnreadMessageCount(uid: string): Promise<number>; }