import { Injectable } from '@nestjs/common' export type AttachmentOptions = { content: string | Buffer // Base64 filename: string type: 'application/pdf' | string } export type MailerSendOptions = { to: string templateId: string substitutions?: { [key: string]: any } dynamicTemplateData?: { [key: string]: any } sendAt?: Date attachments?: Array } @Injectable() export abstract class MailService { abstract send(attrs: MailerSendOptions): Promise }