import { type EmailErrorCode, EmailError } from "./types.mjs"; /** Construct an `EmailError` with a consistent `[unemail] [driver] ...` * prefix so users can grep logs for a single provider. */ export declare function createError(driver: string, code: EmailErrorCode, message: string, init?: { status?: number; retryable?: boolean; cause?: unknown; }): EmailError; /** Error for missing required options — surfaced at driver initialization * so misconfiguration fails fast. */ export declare function createRequiredError(driver: string, name: string | readonly string[]): EmailError; /** Normalize any thrown value into a typed `EmailError`. Preserves an * existing `EmailError` unchanged so retry/status info survives. */ export declare function toEmailError(driver: string, error: unknown): EmailError; export { EmailError };