export interface HttpErrorLike { name: string; message: string; request: { method: string; url: string; headers: Record; body?: unknown; }; response: { status: number; statusText: string; headers: Record; body: unknown; }; } export interface ApiErrorSummary { status: number; statusText: string; requestMethod: string; requestUrl: string; requestId?: string; code?: string; message?: string; fieldErrors?: Array<{ path: string; message: string; }>; retryAfter?: string; hint?: string; } export interface ToolcraftErrorEnvelope { kind: "http"; message: string; code?: string; requestId?: string; http: { method: string; url: string; status: number; statusText: string; }; fieldErrors?: Array<{ path: string; message: string; }>; retryAfter?: string; hint?: string; reportPath?: string; } export declare function isHttpErrorLike(error: unknown): error is HttpErrorLike; export declare function summarizeHttpError(error: HttpErrorLike): ApiErrorSummary; export declare function createHttpErrorEnvelope(error: HttpErrorLike, reportPath?: string): ToolcraftErrorEnvelope;