import type { RateLimit } from './types.js'; export interface HttpClientOptions { baseUrl: string; apiKey: string; timeout?: number; maxRetries?: number; } export interface RequestOptions { headers?: Record; /** * Set to `false` for non-idempotent requests that must never be replayed * (e.g. an authorization-code exchange: a retry after a timeout or 5xx can * burn a single-use code whose first request actually committed). * Defaults to `true`. */ retry?: boolean; } export declare class HttpClient { #private; constructor(options: HttpClientOptions); get lastRateLimit(): RateLimit | undefined; get(path: string, options?: RequestOptions): Promise; post(path: string, body?: unknown, options?: RequestOptions): Promise; put(path: string, body?: unknown, options?: RequestOptions): Promise; patch(path: string, body?: unknown, options?: RequestOptions): Promise; delete(path: string, options?: RequestOptions): Promise; /** * A raw GET, for responses read as a stream (event streams). `signal` lets * the caller close a long-lived stream. */ rawGet(path: string, signal?: AbortSignal): Promise; } //# sourceMappingURL=http.d.ts.map