import type { Transporter } from 'nodemailer'; import type { ICredentialDataDecryptedObject } from 'n8n-workflow'; import type { NormalizedAddress } from './normalize'; export interface SmtpConfig { host: string; port: number; secure: boolean; auth: { user: string; pass: string; }; tls?: { rejectUnauthorized: boolean; }; } export interface EmailAttachment { filename?: string; content?: Buffer | string; path?: string; contentType?: string; contentDisposition?: 'attachment' | 'inline'; cid?: string; } export interface EmailOptions { from?: string; to: string | string[]; cc?: string | string[]; bcc?: string | string[]; subject: string; text?: string; html?: string; attachments?: EmailAttachment[]; replyTo?: string; inReplyTo?: string; references?: string; messageId?: string; } export interface ReplyOptions { replyAll?: boolean; text?: string; html?: string; attachments?: EmailAttachment[]; noteText?: string; noteHtml?: string; } export interface ForwardOptions { to: string | string[]; cc?: string | string[]; bcc?: string | string[]; noteText?: string; noteHtml?: string; attachments?: EmailAttachment[]; } export declare const createSmtpConfig: (credentials: ICredentialDataDecryptedObject) => SmtpConfig; export declare const createTransporter: (config: SmtpConfig) => Transporter; export declare const sendEmail: (transporter: Transporter, options: EmailOptions) => Promise<{ messageId: string; response: string; }>; export declare const prepareReplyEmail: (originalMessage: { messageId?: string; subject?: string; from: NormalizedAddress[]; to: NormalizedAddress[]; cc: NormalizedAddress[]; references?: string; }, replyOptions: ReplyOptions, fromEmail: string) => EmailOptions; export declare const prepareForwardEmail: (originalMessage: { subject?: string; from: NormalizedAddress[]; to: NormalizedAddress[]; date?: Date; text?: string; html?: string; }, forwardOptions: ForwardOptions) => EmailOptions; export declare const validateEmailAddress: (email: string) => boolean; export declare const parseEmailAddresses: (addresses: string | string[]) => string[]; export declare const verifyConnection: (transporter: Transporter) => Promise; //# sourceMappingURL=smtp.d.ts.map