export declare class QueryError extends Error { readonly url: string; readonly status?: string; readonly code?: string; readonly body?: any; readonly response?: Response; constructor(url: string, code: string, status?: string, body?: string, response?: Response); } export type ClientErrorCode = "GENERAL_ERROR" | "BAD_PARAMETERS" | "NEED_AUTHENTICATION" | "NOT_AUTHORIZED" | "NOT_FOUND" | "GONE" | "SERVER_ERROR" | "REQUEST_ERROR" | "UNKNOWN_ERROR" | "CANNOT_CONNECT" | "INVALID_RESPONSE" | "INSUFFICIENT_RESOURCES" | "UNPROCESSABLE_ENTITY"; export declare class ClientError extends Error { reason?: Error; source?: Error; code: string; status?: string; message: any; body: any; constructor(code: ClientErrorCode, reason?: Error | string, message?: string, source?: Error, status?: string); get stack(): string; static from(error: Error | QueryError, message?: string, source?: Error): ClientError; toJSON(): Promise; }