import { P as ProviderFactory } from "../../packem_shared/provider.d-BLLbEuQ8.js"; export type { a as Provider } from "../../packem_shared/provider.d-BLLbEuQ8.js"; import { D as DkimOptions } from "../../packem_shared/types.d-A1Eea-p_.js"; import { B as BaseConfig, E as EmailOptions } from "../../packem_shared/types.d-CyiC9uRC.js"; import 'node:buffer'; /** * SMTP configuration */ interface SmtpConfig extends BaseConfig { authMethod?: "LOGIN" | "PLAIN" | "CRAM-MD5" | "OAUTH2"; /** * DKIM signing, applied to the serialized MIME message just before `DATA` is sent. * * Canonicalization defaults to `relaxed/relaxed` here rather than the `simple/simple` of * {@link DkimOptions}: SMTP hops routinely re-wrap whitespace, which `simple` does not * tolerate. Set `headerCanon`/`bodyCanon` explicitly to override. */ dkim?: DkimOptions; host: string; maxConnections?: number; oauth2?: { accessToken?: string; clientId: string; clientSecret: string; expires?: number; refreshToken: string; user: string; }; password?: string; pool?: boolean; port: number; rejectUnauthorized?: boolean; secure?: boolean; user?: string; } /** * SMTP-specific email options */ interface SmtpEmailOptions extends EmailOptions { /** * Delivery Status Notification options */ dsn?: { /** Request notification on delay */ delay?: boolean; /** Request notification on failure */ failure?: boolean; /** Request successful delivery notification */ success?: boolean; }; /** Special Google Mail headers */ googleMailHeaders?: { /** Category for email organization */ category?: "primary" | "social" | "promotions" | "updates" | "forums"; /** Feedback ID for engagement tracking */ feedbackId?: string; /** Mark as promotional content */ promotionalContent?: boolean; }; /** Reference to a previous message ID (for threading) */ inReplyTo?: string; /** List-Unsubscribe header for easy unsubscribe functionality */ listUnsubscribe?: string | string[]; /** Message priority: 'high', 'normal', or 'low' */ priority?: "high" | "normal" | "low"; /** References to related message IDs */ references?: string | string[]; /** Whether to sign the email with DKIM */ useDkim?: boolean; } /** * SMTP provider for sending emails via SMTP protocol */ declare const smtpProvider: ProviderFactory; export { type ProviderFactory, type SmtpConfig, type SmtpEmailOptions, smtpProvider };