import { Message, Content } from './Message'; export interface EmailAddress { toString(): string; getEmailAddress(): string; getPersonal(): string | undefined; } export declare type EmailSender = EmailAddress | string; export declare type EmailRecipient = EmailAddress | string; export declare type EmailSubject = string; export declare type EmailContent = EmailWithFallbackContent | Content | string; export interface EmailWithFallbackContent extends Content { text?: Content | string; html?: Content | string; } export interface Email extends Message { from?: EmailSender; to?: EmailRecipient[]; cc?: EmailRecipient[]; bcc?: EmailRecipient[]; subject?: EmailSubject; body: EmailContent; }