/// import { HttpApi } from "./http"; export interface ApiMessageAttachment { id: string; createdAt: string; name: string; mimeType: string; checksumSha256: string; driver: string; sizeBytes: number; } export declare class MessageAttachment { private readonly http; readonly id: string; readonly createdAt: Date; readonly name: string; readonly mimeType: string; readonly checksumSha256: string; readonly sizeBytes: number; constructor(http: HttpApi, apiMessageAttachment: ApiMessageAttachment); /** * Download the contents of this attachment and put them in a Buffer. * Be aware that an attachment can be of significant size (we accept only up to 10MB per attachment) * and that using this method will load the entire attachment into memory. * If you want to download the attachment to a file directly, use downloadToFile() instead. */ download(): Promise; /** * Download the contents of this attachment and write them to a file. * If you want to get the contents of the attachment in a Buffer, use download() instead. */ downloadToFile(path: string): Promise; }