import type { DriverFactory, EmailMessage } from "../types.mjs"; import type { AuthMethod } from "./_smtp/auth.mjs"; import { type DkimSignerOptions } from "./_smtp/dkim.mjs"; export type { DkimSignerOptions }; /** User-visible options. See `docs/drivers/smtp.md` (lands with #54) for * the full matrix. Defaults favor security: `rejectUnauthorized: true`, * AUTO auth, STARTTLS if the server advertises it. */ export interface SmtpDriverOptions { host: string; port?: number; secure?: boolean; requireTLS?: boolean; user?: string; password?: string; authMethod?: AuthMethod | "AUTO"; getAccessToken?: () => Promise; rejectUnauthorized?: boolean; tls?: import("node:tls").ConnectionOptions; localName?: string; pool?: boolean; maxConnections?: number; maxMessagesPerConnection?: number; idleTimeoutMs?: number; connectionTimeoutMs?: number; commandTimeoutMs?: number; disposeGraceMs?: number; /** Sign outbound messages with DKIM (RFC 6376 / RFC 8463). Accepts a * single signer config or a per-message resolver for multi-tenant * sending. */ dkim?: DkimSignerOptions | ((msg: EmailMessage) => DkimSignerOptions | null); } declare const smtp: DriverFactory; export default smtp;