import { SentlyError } from "../core/errors.js"; import type { MailOptions, SendResult, Transport, VerifyResult } from "../core/types.js"; /** SparkPost HTTP API configuration. */ export interface SparkPostConfig { /** SparkPost API key (raw key — no Bearer prefix). */ apiKey: string; /** When true, use the EU API host (`api.eu.sparkpost.com`). */ euRegion?: boolean; } /** Error thrown when the SparkPost API returns a non-success response. */ export declare class SparkPostError extends SentlyError { readonly statusCode: number; readonly errors: unknown; /** Creates a SparkPost API error with status code and error details. */ constructor(message: string, statusCode: number, errors: unknown); } /** * SparkPost HTTP API transport. */ export declare class SparkPostTransport implements Transport { readonly provider = "sparkpost"; private readonly apiKey; private readonly baseUrl; /** Creates a SparkPost transport with the given API key. */ constructor(config: SparkPostConfig); /** Sends an email via the SparkPost transmissions API. */ send(options: MailOptions): Promise; /** Verifies the SparkPost API key by fetching account info. */ verify(): Promise; }