import nodemailer from 'nodemailer'; import { Mailable } from '../Mailable.mjs'; import { MailerProvider } from '../MailerProvider.mjs'; /** * Configuration options for the SMTPProvider. */ type SMTPProviderConfig = { /** Nodemailer transport options for SMTP configuration */ nodemailer_options: nodemailer.TransportOptions; /** Default sender email address */ default_from: string; }; /** * Mailer provider that sends emails via SMTP using nodemailer. * Supports standard SMTP server configuration. */ declare class SMTPProvider implements MailerProvider { private defaultFrom; private transporter; private static nodemailerModule; /** * Creates a new SMTPProvider instance. * @param options - Provider configuration options */ constructor(options?: Partial); /** * Sets the default sender email address. * @param from - The default sender email address */ setDefaultFrom(from: string): void; /** * Sends an email via SMTP. * @param mail - The email message to send */ sendMail(mail: Mailable): Promise; } export { SMTPProvider, type SMTPProviderConfig };