// noinspection JSUnusedGlobalSymbols declare namespace Strapi { export namespace EmailEmitter { import { CollectionTypeService } from "@strapi/strapi/lib/core-api/service" type EmailEntity = { id: string email: string | null publishedAt: Date | null template: EmailDesigner.TemplateEntity delivered: boolean scheduled: boolean payload?: { [key: string]: string } } type EmailService = CollectionTypeService type EmailParams = Omit & { template?: Partial } type EmitterService = { sendScheduled(): Promise send(params: EmailParams): Promise } } }