import type Account from '../classes/Account'; import type { IMail, If } from '../types/common'; export default class Mail implements IMail { account: Account; readonly id: string; readonly msgid: string; readonly from: { address: string; name: string; }; readonly to: Array<{ address: string; name: string; }>; readonly subject: string; readonly intro: string; readonly seen: boolean; readonly isDeleted: boolean; readonly hasAttachments: boolean; readonly downloadUrl: string; readonly size: number; readonly createdAtTimestamp: string; readonly updatedAtTimestamp: string; readonly html?: If; constructor(mail: IMail, account: Account); fetch(): Promise; delete(): Promise; setIsSeen(seen?: boolean): Promise; download(path?: Path): Promise; get createdAt(): Date; get updatedAt(): Date; }