import type { Config } from "./config.js"; export declare class ParseableError extends Error { status: number; body: string; hint?: string | undefined; constructor(status: number, body: string, message: string, hint?: string | undefined); } export declare function parseErrorBody(body: string): string; export declare function classifyStatus(status: number, _method: string, path: string): string | undefined; export declare class ParseableClient { readonly apiKey: string; readonly baseUrl: string; readonly tenantId?: string; private readonly queryTimeoutMs; private readonly onUnauthorized?; constructor(opts: Config, hooks?: { onUnauthorized?: () => void; }); private headers; private fetch; fetchToolRegistry(etag?: string): Promise<{ notModified: true; maxAgeMs: number; } | { notModified: false; body: unknown; etag?: string; maxAgeMs: number; }>; callTool(name: string, args: Record): Promise; private responseError; }