import { SentlyError } from "../core/errors.js"; import type { MailOptions, SendResult, Transport, VerifyResult } from "../core/types.js"; /** MailerSend HTTP API configuration. */ export interface MailerSendConfig { /** MailerSend API token for Bearer authentication. */ apiToken: string; } /** Error thrown when the MailerSend API returns a non-success response. */ export declare class MailerSendError extends SentlyError { readonly statusCode: number; readonly apiError: unknown; /** Creates a MailerSend API error with status code. */ constructor(message: string, statusCode: number, apiError: unknown); } /** * MailerSend HTTP API transport. */ export declare class MailerSendTransport implements Transport { readonly provider = "mailersend"; private readonly apiToken; /** Creates a MailerSend transport with the given API token. */ constructor(config: MailerSendConfig); /** Sends an email via the MailerSend HTTP API. */ send(options: MailOptions): Promise; /** Verifies the MailerSend API token by listing domains. */ verify(): Promise; }