import type NodemailerTransport from 'nodemailer/lib/smtp-transport/index.js';
import { MailResponse } from '../mail_response.js';
import type { SMTPConfig, NodeMailerMessage, MailTransportContract } from '../types.js';
/**
 * SMTP transport uses the Nodemailer inbuilt transport for sending
 * emails
 */
export declare class SMTPTransport implements MailTransportContract {
    #private;
    constructor(config: SMTPConfig);
    /**
     * Send message
     */
    send(message: NodeMailerMessage): Promise<MailResponse<NodemailerTransport.SentMessageInfo>>;
    /**
     * Close transporter connection, helpful when using connections pool
     */
    close(): Promise<void>;
}
