import type NodeMailer from "nodemailer"; type Variables = Record; export type MailTemplate = { subject: string; html: string; }; export type SMTPConfiguration = { host: string; port: number; auth: { user: string; pass: string; }; }; export type MailerConfig = { emailFrom?: string; baseUrl?: string; port?: number; smtp?: SMTPConfiguration; }; export type RenderFunction = (template: string, view: Record) => string; type Logger = Pick; export declare function Mailer(nodeMailer: typeof NodeMailer, render: RenderFunction, logger: Logger | undefined, config: MailerConfig): { send: (to: string, template: MailTemplate, variables: Variables) => Promise; }; export type Mailer = ReturnType; export {};