import nodemailer from "nodemailer"; import type { SmtpClientOptions, EmailSendResult } from "../types.js"; import type { EmailLogger } from "../utils/logger.js"; /** * Create SMTP transport */ export declare function createSmtpTransport(options: SmtpClientOptions): nodemailer.Transporter; /** * Send email options */ interface SendEmailOptions { /** Transport instance (optional, will create if not provided) */ transport?: ReturnType; /** Sender email */ from: string; /** Recipient email(s) */ to: string | string[]; /** CC recipients (optional) */ cc?: string | string[]; /** Email subject */ subject: string; /** Plain text body */ text: string; /** HTML body (optional) */ html?: string; /** Attachments */ attachments?: Array<{ filename: string; content: Buffer; contentType?: string; }>; /** In-Reply-To header for threading */ inReplyTo?: string; /** References header for threading */ references?: string[]; /** Custom headers */ headers?: Record; } /** * Send email via SMTP */ export declare function sendEmail(options: SendEmailOptions, log?: EmailLogger): Promise; /** * Send email with config (convenience function) */ export declare function sendEmailWithConfig(config: SmtpClientOptions, options: Omit, log?: EmailLogger): Promise; export {};