import { SentlyError } from "../core/errors.js"; import type { MailOptions, SendResult, Transport, VerifyResult } from "../core/types.js"; /** Loops HTTP API configuration. */ export interface LoopsConfig { /** Loops API key for Bearer authentication. */ apiKey: string; /** Default transactional template ID when not set per message via header. */ defaultTransactionalId?: string; } /** Error thrown when the Loops API returns a non-success response. */ export declare class LoopsError extends SentlyError { readonly statusCode: number; readonly apiError: unknown; /** Creates a Loops API error with status code. */ constructor(message: string, statusCode: number, apiError: unknown); } /** * Loops transactional HTTP API transport. */ export declare class LoopsTransport implements Transport { readonly provider = "loops"; private readonly apiKey; private readonly defaultTransactionalId?; /** Creates a Loops transport with the given API key. */ constructor(config: LoopsConfig); /** Sends a transactional email via the Loops HTTP API. */ send(options: MailOptions): Promise; /** * Returns success without a network call — Loops has no simple verify endpoint. */ verify(): Promise; }