export type SmtpConfig = {
    host: string;
    port: number;
    username?: string;
    password?: string;
    secure?: boolean | 'starttls';
};
export type MailAddress = {
    email: string;
    name?: string;
};
export type MailAttachment = {
    filename: string;
    content: Buffer;
};
export type MailMessage = {
    to: string | string[];
    from: MailAddress;
    subject: string;
    text: string;
    html?: string;
    attachments?: MailAttachment[];
};
export type SendResult = {
    ok: boolean;
    provider: 'smtp';
    messageId?: string;
};
export declare const SmtpDriver: Readonly<{
    /**
     * NOTE: This is a minimal SMTP implementation intended for Node.js runtimes.
     * - `secure=true` means TLS from the start (SMTPS).
     * - `secure='starttls'` performs STARTTLS after EHLO.
     */
    send(config: SmtpConfig, message: MailMessage): Promise<SendResult>;
}>;
export default SmtpDriver;
//# sourceMappingURL=Smtp.d.ts.map