import type { EmailErrorCode } from "../../types.mjs"; import { EmailError } from "../../errors.mjs"; /** Map an SMTP reply code to our cross-driver error taxonomy. */ export declare function mapReplyCode(code: number): { code: EmailErrorCode; retryable: boolean; }; /** Surface an SMTP reply as an `EmailError`. */ export declare function replyError(replyCode: number, raw: string, stage?: string): EmailError; /** Surface a socket/network error. */ export declare function wrapNetworkError(err: unknown, stage?: string): EmailError; /** Surface a timeout. */ export declare function timeoutError(stage: string, ms: number): EmailError; /** Surface cancellation (dispose / abort signal). */ export declare function cancelledError(reason?: string): EmailError;