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) 534 B
/// <reference types="node" /> import type { IUploadRead } from '../../definition/accessors'; import type { IUpload } from '../../definition/uploads'; import type { UploadBridge } from '../bridges/UploadBridge'; export declare class UploadRead implements IUploadRead { private readonly uploadBridge; private readonly appId; constructor(uploadBridge: UploadBridge, appId: string); getById(id: string): Promise<IUpload>; getBuffer(upload: IUpload): Promise<Buffer>; getBufferById(id: string): Promise<Buffer>; }