import { TotalumApiResponse } from "../common/interfaces"; import { EmailSendResponse } from "../common/response-types"; import { FetchClient } from "../common/fetch-client"; export interface EmailPayloadI { to: string[]; subject: string; html: string; fromName?: string; cc?: string[]; bcc?: string[]; replyTo?: string; attachments?: { filename: string; url: string; contentType?: string; }[]; } export declare class EmailService { private client; constructor(client: FetchClient); /** * Sends an email with custom validation and attachment processing. * All attachments must be provided as URLs. * Maximum 10 attachments, each up to 15MB. * @param {EmailPayloadI} emailPayload - The email configuration. * @returns {Promise>} - A promise that resolves to the email send response. */ sendEmail(emailPayload: EmailPayloadI): Promise>; /** * Sends an email using the Resend service with the default domain. * @param {EmailPayloadI} emailPayload - The email configuration including recipients, subject, content, etc. * @returns {Promise>} - A promise that resolves to the email send response. */ private sendEmailWithDefaultDomain; }