import { Mailable } from '../Mailable.mjs'; import { MailerProvider } from '../MailerProvider.mjs'; /** * Configuration options for the ProtonMailProvider. */ type ProtonMailProviderConfig = { /** ProtonMail Bridge host (default: 127.0.0.1) */ bridge_host?: string; /** ProtonMail Bridge port (default: 1025) */ bridge_port?: number; /** ProtonMail username */ username: string; /** ProtonMail password */ password: string; /** Default sender email address */ default_from: string; /** Whether to verify SSL certificates (default: false for Bridge) */ reject_unauthorized?: boolean; }; /** * Mailer provider that sends emails via ProtonMail Bridge SMTP. * Requires ProtonMail Bridge to be installed and running locally. * @see https://proton.me/mail/bridge */ declare class ProtonMailProvider implements MailerProvider { private defaultFrom; private transporter; private static nodemailerModule; /** * Creates a new ProtonMailProvider 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 ProtonMail Bridge SMTP. * @param mail - The email message to send */ sendMail(mail: Mailable): Promise; } export { ProtonMailProvider, type ProtonMailProviderConfig };