import { Mailable } from '../Mailable.mjs'; import { MailerProvider } from '../MailerProvider.mjs'; /** * Configuration options for the MemoryProvider. */ type MemoryProviderConfig = { /** Default sender email address */ default_from: string; }; /** * Mailer provider that stores sent emails in memory. * Useful for testing without actually sending emails. */ declare class MemoryProvider implements MailerProvider { private config; private defaultFrom; /** Array of emails that have been "sent" (stored in memory) */ sentEmails: { from: string; to: string[]; cc: string[]; bcc: string[]; subject: string; text: string; html: string; }[]; /** * Creates a new MemoryProvider instance. * @param config - Provider configuration options */ constructor(config?: Partial); /** * Sets the default sender email address. * @param from - The default sender email address */ setDefaultFrom(from: string): void; /** * "Sends" an email by storing it in memory. * @param mail - The email message to send */ sendMail(mail: Mailable): Promise; } export { MemoryProvider, type MemoryProviderConfig };