import { Transporter } from 'nodemailer';
import { EmailConfig, EmailSendOptions } from './email.interface';
export declare class EmailService {
    private config;
    transporter: Transporter;
    constructor(config: EmailConfig);
    /** 创建发送器*/
    getTransporter(config: EmailConfig): Transporter<import("nodemailer/lib/smtp-transport").SentMessageInfo, import("nodemailer/lib/smtp-transport").Options>;
    sendMain({ to, subject, html }: EmailSendOptions): Promise<void>;
    /** 动态调用发送方发送邮件*/
    sendWithConfig(config: EmailConfig, email: EmailSendOptions): Promise<void>;
}
//# sourceMappingURL=email.service.d.ts.map