import { SentlyError } from "../core/errors.js"; import type { MailOptions, SendResult, Transport, VerifyResult } from "../core/types.js"; /** Plunk HTTP API configuration. */ export interface PlunkConfig { /** Plunk API key for Bearer authentication. */ apiKey: string; } /** Error thrown when the Plunk API returns a non-success response. */ export declare class PlunkError extends SentlyError { readonly statusCode: number; readonly apiError: unknown; /** Creates a Plunk API error with status code. */ constructor(message: string, statusCode: number, apiError: unknown); } /** * Plunk HTTP API transport. */ export declare class PlunkTransport implements Transport { readonly provider = "plunk"; private readonly apiKey; /** Creates a Plunk transport with the given API key. */ constructor(config: PlunkConfig); /** Sends an email via the Plunk HTTP API (one request per recipient). */ send(options: MailOptions): Promise; /** * Returns success without a network call — Plunk has no documented verify endpoint. */ verify(): Promise; }