export interface EmailAttachment { filename: string; mimeType: string; content: Uint8Array; contentId?: string; icon: string; } export interface ParsedEmailResult { subject: string; from: string; to: string[]; date: string; htmlBody: string; textBody?: string; attachments: EmailAttachment[]; } export type EmailGetError = { Error: boolean; message: string; };