import { Method } from 'axios'; import { ResolvedConfig } from './types'; export declare class HttpError extends Error { status: number; data: any; constructor(message: string, status: number, data: any); } type Primitive = string | number | boolean; export interface JsonRequestOptions { method: Method; path: string; query?: Record; data?: any; apiKeyAuth?: boolean; apiKeyOrX402Auth?: boolean; /** Non-authentication endpoint headers such as Idempotency-Key. */ headers?: Record; } export declare function requestJson(config: ResolvedConfig, options: JsonRequestOptions): Promise; export {};