import { EmailOptions } from '../types'; import { Message } from './Message'; export declare class Email extends Message { messageId: string; inReplyTo: string; ccAddresses: string; bccAddresses: string; replyToAddress: string; replyToName: string; textBody: string; htmlBody: string; folderId: string; folderPath: string; labels: string; flags: string; isAnswered: boolean; isDraft: boolean; rawMessage: string; headers: string; constructor(options?: EmailOptions); /** * Get CC addresses as parsed array */ getCcAddresses(): Array<{ address: string; name?: string; }>; /** * Get BCC addresses as parsed array */ getBccAddresses(): Array<{ address: string; name?: string; }>; /** * Get labels as parsed array */ getLabels(): string[]; /** * Set labels from array */ setLabels(labels: string[]): void; /** * Get flags as parsed array */ getFlags(): string[]; /** * Set flags from array */ setFlags(flags: string[]): void; /** * Get headers as parsed object */ getHeaders(): Record; /** * Set headers from object */ setHeaders(headers: Record): void; /** * Get the email account (typed as EmailAccount) */ getAccount(): Promise; /** * Get the folder */ getFolder(): Promise; /** * Get emails in the same thread */ getThreadEmails(): Promise; /** * Get a short preview of the email body */ getPreview(maxLength?: number): string; /** * Get References header values as array */ getReferences(): string[]; /** * Create a reply to this email with RFC 822 threading */ createReply(options?: { replyAll?: boolean; }): Email; /** * Create a forward of this email */ createForward(): Email; /** * Build email-specific quoted body for replies */ protected buildQuotedBody(): string; /** * Build forwarded message body */ private buildForwardBody; } //# sourceMappingURL=Email.d.ts.map