/** HTTP shell over `api`, built on `fetch`: the only module that performs I/O. */ import { type ApiError, type Request } from "./api.js"; export declare const TIMEOUT_MS = 10000; /** Bytes of a response read before it is refused. Real answers are a few thousand. */ export declare const MAX_BODY_BYTES = 1000000; /** The request never produced a response: DNS, TLS, timeout and the like. */ export declare class TransportError { readonly reason: string; constructor(reason: string); toString(): string; } export interface ClientOptions { /** Another host, such as a staging stack or a mock. */ readonly baseUrl?: string; /** Your own `fetch`, for proxies or tests. */ readonly fetch?: typeof fetch; readonly timeoutMs?: number; } export declare class Client { #private; constructor(apiKey: string, options?: ClientOptions); send(request: Request): Promise; }