UNPKG

@454creative/easy-email

Version:

A framework-agnostic email service library for Node.js with observability and monitoring

32 lines 1.2 kB
import { SmtpConfig, SendGridConfig, SesConfig, EmailProviderConfig, EmailProviderType } from '../interfaces/email-options.interface'; export declare const DEFAULT_RETRY_ATTEMPTS = 3; export declare const DEFAULT_RETRY_DELAY = 1000; export declare const DEFAULT_TIMEOUT = 10000; export declare const DEFAULT_SMTP_CONFIG: SmtpConfig; export declare const DEFAULT_SENDGRID_CONFIG: SendGridConfig; /** * Default AWS SES Configuration */ export declare const DEFAULT_SES_CONFIG: SesConfig; export declare class EmailConfigBuilder { private config; private retryAttempts; private retryDelay; private timeout; constructor(providerType?: EmailProviderType); withSmtpConfig(config: Partial<SmtpConfig>): this; withSendGridConfig(config: Partial<SendGridConfig>): this; /** * Configure AWS SES settings */ withSesConfig(config: Partial<SesConfig>): this; withRetryAttempts(attempts: number): this; withRetryDelay(delay: number): this; withTimeout(timeout: number): this; build(): EmailProviderConfig & { retryAttempts: number; retryDelay: number; timeout: number; }; } //# sourceMappingURL=default-config.d.ts.map