import { SentlyError } from "../core/errors.js"; import type { MailOptions, SESConfig, SendResult, Transport, VerifyResult } from "../core/types.js"; /** Error thrown when the AWS SES API returns a non-success response. */ export declare class SESError extends SentlyError { readonly statusCode: number; readonly requestId: string; /** Creates an AWS SES API error with status code, error code, and request ID. */ constructor(message: string, statusCode: number, awsCode: string, requestId: string); } /** * AWS SES v2 HTTP API transport. */ export declare class SESTransport implements Transport { readonly provider = "ses"; /** AWS access key ID for SigV4 signing. */ private readonly accessKeyId; /** AWS secret access key for SigV4 signing. */ private readonly secretAccessKey; /** AWS region for the SES endpoint. */ private readonly region; /** Optional STS session token for temporary credentials. */ private readonly sessionToken; /** Optional DKIM config for raw MIME attachment sends. */ private readonly dkim; /** Creates an SES transport with AWS credentials. */ constructor(config: SESConfig); /** Sends an email via the AWS SES v2 HTTP API. */ send(options: MailOptions): Promise; /** Verifies AWS credentials by listing SES configuration sets. */ verify(): Promise; }