import BaseStorage from "../../storage/BaseStorage.js"; import { LocalFile } from "@entity-access/server-pages/dist/core/LocalFile.js"; import Mailbox from "../../model/entities/Mailbox.js"; export interface IEmailRecipientInfo { emailAddress: string; type?: string; name: string; } export interface IEmailInfo { externalEmailID: string; labels: string[]; mailbox: Mailbox; silent?: boolean; receivedViaSMTP?: boolean; messageId: string; isDraft?: boolean; localEmailID?: number; } export interface ISaveEmailInfo { sender?: string; localEmailID?: number; syncedMailbox?: Mailbox; mailboxes: Mailbox[]; received?: boolean; silent?: boolean; isDraft?: boolean; ars?: any; log?: string; labels?: string[]; externalEmailID?: string; } export default class EmailSerializerService { storage: BaseStorage; private emailAddressService; private db; private tempFileService; private emailParserService; private emailLogService; private workflowContext; saveRFC822(text: string, emailInfo: IEmailInfo): Promise; saveRFC822File(file: LocalFile, emailInfo: IEmailInfo): Promise; save(file: LocalFile, { mailboxes, syncedMailbox, received, isDraft, silent, ars, sender, log, localEmailID, externalEmailID, labels }: ISaveEmailInfo): Promise; } //# sourceMappingURL=EmailSerializerService.d.ts.map