import { SentlyError } from "../core/errors.js"; import type { MailOptions, SendResult, Transport, VerifyResult } from "../core/types.js"; /** Mailtrap HTTP API configuration. */ export interface MailtrapConfig { /** Mailtrap API token for Bearer authentication. */ apiToken: string; /** When true, use the sandbox send endpoint (requires `inboxId`). */ sandbox?: boolean; /** Sandbox inbox ID — required when `sandbox` is true. */ inboxId?: string; } /** Error thrown when the Mailtrap API returns a non-success response. */ export declare class MailtrapError extends SentlyError { readonly statusCode: number; readonly apiError: unknown; /** Creates a Mailtrap API error with status code. */ constructor(message: string, statusCode: number, apiError: unknown); } /** * Mailtrap HTTP API transport. */ export declare class MailtrapTransport implements Transport { readonly provider = "mailtrap"; private readonly apiToken; private readonly sandbox; private readonly inboxId?; /** Creates a Mailtrap transport with the given API token. */ constructor(config: MailtrapConfig); private sendUrl; /** Sends an email via the Mailtrap HTTP API. */ send(options: MailOptions): Promise; /** * Returns success without a network call — Mailtrap has no simple verify endpoint. */ verify(): Promise; }