import * as z from "zod"; export declare const AnthropicErrorSchema: z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodObject<{ type: z.ZodString; message: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export declare class AnthropicError { readonly type: "error"; readonly error: z.infer["error"]; status: number; constructor(message: string, type?: string); } export declare function toAnthropicError(error: unknown, requestId?: string): AnthropicError; export declare function toAnthropicErrorResponse(error: unknown, init: ResponseInit): Response;