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) 413 B
import type { IPermission } from '../../definition/permissions/IPermission'; export declare class AppPermissionManager { /** * It returns the declaration of the permission if the app declared, or it returns `undefined`. */ static hasPermission<P extends IPermission>(appId: string, permission: P): P | undefined; static notifyAboutError(err: Error): void; private static getCallStack; }