import { Address, AmpAttachment, Attachment, ListHeaders } from "nodemailer/lib/mailer"; import { Readable } from "nodemailer/lib/xoauth2"; type CreateTransport = (config: any, defaults?: any) => T; export declare abstract class MailBuilder { protected transporter: Transporter; constructor(config: Config, createTransport: CreateTransport); abstract sendMail(options: Options, templateMain: string): Promise; } export interface MailOptions { to: string | Address | Array; from: string | Address; subject: string | undefined; text?: string; amp?: string | Buffer | Readable | AmpAttachment | undefined; attachments?: Attachment[]; list?: ListHeaders; } export interface Response { messageId: string; getTestMessageUrl?: string | false; } export interface MailUseCases { sendMail(options: Options, templateMain: string): Promise; } export {}; //# sourceMappingURL=index.d.ts.map