declare const MAX_RETRIES = 3; declare const RETRY_BASE_MS = 500; declare const RETRY_MAX_MS_DEFAULT = 16000; declare const ERROR_HINTS: Record; type Body_hint = { pattern: RegExp; hint: string; }; declare const pick_hint: (status: number, body: string, extra_hints?: Body_hint[]) => string | undefined; type Retry_event = { attempt: number; max_attempts: number; delay_ms: number; status: number; }; type Retry_config = { max_attempts?: number; base_ms?: number; max_ms?: number; on_retry?: (e: Retry_event) => void; }; type Request_opts = { method?: string; body?: unknown; headers?: Record; timing?: boolean; raw_buffer?: boolean; hints?: Body_hint[]; retry?: Retry_config; }; type Api_error = { status: number; message: string; hint?: string; }; declare const compute_backoff: (attempt: number, base_ms: number, max_ms: number) => number; declare const request: (api_key: string, endpoint: string, opts?: Request_opts) => Promise; declare const post: (api_key: string, endpoint: string, body: unknown, opts?: Omit) => Promise; declare const get: (api_key: string, endpoint: string, opts?: Omit) => Promise; export { request, post, get, pick_hint, ERROR_HINTS, compute_backoff, RETRY_BASE_MS, RETRY_MAX_MS_DEFAULT, MAX_RETRIES }; export type { Request_opts, Api_error, Body_hint, Retry_config, Retry_event }; //# sourceMappingURL=client.d.ts.map