/** * Runtime-agnostic HTTP client using the global fetch API. * No Node.js built-in imports — works in any environment with global fetch. */ export declare class HttpError extends Error { readonly status: number; readonly statusText: string; readonly url: string; /** Retry-After header value (when present on 429 responses). */ readonly retryAfter: string | null; constructor(status: number, statusText: string, url: string, retryAfter?: string | null); get isRetryable(): boolean; } interface RetryOptions { maxRetries?: number | undefined; retryDelay?: number | undefined; } export interface HttpGetOptions extends RetryOptions { headers?: Record; timeout?: number; params?: Record; } export interface HttpPostJsonOptions extends RetryOptions { headers?: Record; timeout?: number; } export declare function httpGetText(url: string, options?: HttpGetOptions): Promise; export declare function httpGetJson(url: string, options?: HttpGetOptions): Promise; export declare function httpPostJson(url: string, body: unknown, options?: HttpPostJsonOptions): Promise; export {}; //# sourceMappingURL=http-client.d.ts.map