import { Mailable } from '../Mailable.mjs'; import { MailerProvider } from '../MailerProvider.mjs'; /** * Configuration options for the FunctionProvider. */ type FunctionProviderConfig = { /** Default sender email address */ default_from: string; }; /** * Mailer provider that uses a custom function to send emails. * Useful for testing or custom email sending logic. */ declare class FunctionProvider implements MailerProvider { private func; private config; private defaultFrom; /** * Creates a new FunctionProvider instance. * @param func - Function to call for sending emails * @param config - Provider configuration options */ constructor(func: Function, config: FunctionProviderConfig); /** * Sets the default sender email address. * @param from - The default sender email address */ setDefaultFrom(from: string): void; /** * Sends an email by calling the configured function. * @param mail - The email message to send */ sendMail(mail: Mailable): Promise; } export { FunctionProvider, type FunctionProviderConfig };