import { SentlyError } from "../core/errors.js"; import type { MailgunConfig, MailOptions, SendResult, Transport, VerifyResult } from "../core/types.js"; /** Error thrown when the Mailgun API returns a non-success response. */ export declare class MailgunError extends SentlyError { readonly statusCode: number; readonly apiError: unknown; /** Creates a Mailgun API error with status code and response payload. */ constructor(message: string, statusCode: number, apiError: unknown); } /** * Mailgun HTTP API transport (multipart/form-data). */ export declare class MailgunTransport implements Transport { readonly provider = "mailgun"; /** Mailgun API key for basic authentication. */ private readonly apiKey; /** Mailgun sending domain. */ private readonly domain; /** Mailgun API base URL (US or EU region). */ private readonly baseUrl; /** Creates a Mailgun transport with the given API key and domain. */ constructor(config: MailgunConfig); /** Sends an email via the Mailgun Messages API. */ send(options: MailOptions): Promise; /** Verifies the Mailgun API key by listing domains. */ verify(): Promise; }