import { EmailParams, EmailWebhook, IEmailWebhookUpdate } from "../models"; import { RequestService } from "../services/request.service"; import { APIResponse } from "./MailerSend.module"; export declare class EmailModule extends RequestService { constructor(apiKey: string, baseUrl: string); send(params: EmailParams): Promise; sendBulk(params: EmailParams[]): Promise; getBulkStatus(bulkId: string): Promise; createWebhook(params: EmailWebhook): Promise; listWebhook(domainId: string): Promise; getWebhook(id: string): Promise; updateWebhook(id: string, updates: Partial): Promise; deleteWebhook(id: string): Promise; } export interface Variable { email: string; substitutions: VariableSubstitution[]; } export interface VariableSubstitution { var: string; value: string; } export interface Personalization { email: string; data: { [key: string]: string; }; }