import type { ProviderUsageError } from '../../shared/provider-usage.js'; export interface FetchJsonOptions { body?: string; headers?: Record; maxAttempts?: number; method?: 'GET' | 'POST'; retryBaseDelayMs?: number; retryMaxDelayMs?: number; telemetryLabel?: string; timeoutMs?: number; url: string; } export interface FetchJsonResult { data?: unknown; error?: ProviderUsageError; status?: number; } export declare function fetchJson({ body, headers, maxAttempts, method, retryBaseDelayMs, retryMaxDelayMs, telemetryLabel, timeoutMs, url, }: FetchJsonOptions): Promise; export declare function bearer(token: string): string; export declare function providerUsageNetworkErrorMessage(error: unknown): string; //# sourceMappingURL=http.d.ts.map