/** * SMTP Client * Send, reply, and forward emails via SMTP using Nodemailer */ import type { AccountConfig } from './config.js'; export interface EmailAttachment { filename: string; content_base64: string; content_type?: string; } export interface SendEmailOptions { to: string; subject: string; body: string; cc?: string; bcc?: string; in_reply_to?: string; references?: string; attachments?: EmailAttachment[]; } export interface SendResult { success: boolean; message_id: string; raw?: Buffer; } /** * Convert markdown text to simple HTML for email. * Uses sanitize-html to sanitize the output HTML against XSS vectors like javascript: links. */ export declare function textToHtml(text: string): string; /** * Send a new email */ export declare function sendNewEmail(account: AccountConfig, options: SendEmailOptions): Promise; /** * Reply to an email (maintains thread via In-Reply-To and References headers) */ export declare function replyToEmail(account: AccountConfig, options: SendEmailOptions): Promise; /** * Forward an email */ export declare function forwardEmail(account: AccountConfig, options: SendEmailOptions & { original_body: string; }): Promise; //# sourceMappingURL=smtp-client.d.ts.map