import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; export interface IEmailAddress { address: string; name?: string; group?: string; } export interface IEmailHeaders { [key: string]: any; } export default interface IEmailObject { headers: IEmailHeaders; subject: string; from: IEmailAddress; to: IEmailAddress[]; cc: IEmailAddress[]; bcc: IEmailAddress[]; date: DateTime; messageID: string; inReplyTo: string; replyTo: string; references: string[]; html: string; text: string; textAsHtml: string; attachments: IEmailAttachment[]; } export interface IEmailAttachment { filename: string; contentType: string; contentDisposition: string; checksum: string; size: number; headers: IEmailHeaders; contentID: string; cid: string; related: boolean; contentFileID: number; }