/// export declare class Attachment { static fromLocalFile(filePath: string, options?: FileAttachmentOptions): AttachmentItem; /** * Creates an attachment from in-memory data held in a Buffer. * You need to specify the filename manually as there is no file path to infer it from. */ static fromBuffer(buffer: Buffer, filename: string, options?: FileAttachmentOptions): AttachmentItem; } export declare abstract class AttachmentItem { } export interface FileAttachmentOptions { /** * A custom mime type to enforce on the attachment. * Unless the file has an unusual file extension, you are often better * off letting the mime type be detected automatically by the server. */ mimeType?: string; } export declare class LocalFileAttachment extends AttachmentItem { filePath: string; options: FileAttachmentOptions; static maxFileSize: number; buffer: Buffer; filename: string; constructor(filePath: string, options?: FileAttachmentOptions); load(): Promise; } export declare class BufferFileAttachment extends AttachmentItem { buffer: Buffer; filename: string; options: FileAttachmentOptions; static maxFileSize: number; constructor(buffer: Buffer, filename: string, options?: FileAttachmentOptions); load(): Promise; }