+
+interface SendEmailDefaultLocalsOptions {
+ instanceName: string
+ text: string
+ subject: string
+}
+
+interface SendEmailDefaultMessageOptions {
+ to: string[] | string
+ from: From
+ subject: string
+ replyTo: string
+}
+
+export type SendEmailDefaultOptions = {
+ template: 'common'
+
+ message: SendEmailDefaultMessageOptions
+
+ locals: SendEmailDefaultLocalsOptions & {
+ WEBSERVER: any
+ EMAIL: any
+ }
+}
+
+export type SendEmailOptions = MailTemplate | MailText