UNPKG

@rocket.chat/apps-engine

Version:

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

15 lines (14 loc) 830 B
/// <reference types="node" /> import type { IUpload } from '../../definition/uploads'; import type { IUploadDetails } from '../../definition/uploads/IUploadDetails'; import { BaseBridge } from './BaseBridge'; export declare abstract class UploadBridge extends BaseBridge { doGetById(id: string, appId: string): Promise<IUpload>; doGetBuffer(upload: IUpload, appId: string): Promise<Buffer>; doCreateUpload(details: IUploadDetails, buffer: Buffer, appId: string): Promise<IUpload>; protected abstract getById(id: string, appId: string): Promise<IUpload>; protected abstract getBuffer(upload: IUpload, appId: string): Promise<Buffer>; protected abstract createUpload(details: IUploadDetails, buffer: Buffer, appId: string): Promise<IUpload>; private hasReadPermission; private hasWritePermission; }