import { SentlyError } from "../core/errors.js"; import type { MailOptions, SendResult, Transport, VerifyResult } from "../core/types.js"; /** Postmark API configuration. */ export interface PostmarkConfig { /** Postmark server API token. */ serverToken: string; } /** Error thrown when the Postmark API returns a non-success response. */ export declare class PostmarkError extends SentlyError { readonly statusCode: number; readonly apiError: unknown; /** Creates a Postmark API error with status code and response payload. */ constructor(message: string, statusCode: number, apiError: unknown); } /** * Postmark HTTP API transport. */ export declare class PostmarkTransport implements Transport { readonly provider = "postmark"; /** Postmark server API token for the X-Postmark-Server-Token header. */ private readonly serverToken; /** Creates a Postmark transport with the given server token. */ constructor(config: PostmarkConfig); /** Sends an email via the Postmark HTTP API. */ send(options: MailOptions): Promise; /** Verifies the Postmark server token by fetching server info. */ verify(): Promise; }