//#region src/http.d.ts interface ClientOptions { /** * Per-request timeout in milliseconds. * A timeout error is thrown when any single HTTP request exceeds this limit. * Does NOT apply to the total upload/download operation time. * @default 60_000 */ timeout?: number; /** * Custom fetch implementation. Use for testing (mock), proxy/tunnel, * or runtimes without global fetch. * Must be API-compatible with the WHATWG `fetch` standard and support * `duplex: "half"` for streaming upload bodies. * @default globalThis.fetch */ fetch?: typeof fetch; /** * Maximum number of retries for transient network errors. * Retries use exponential backoff starting at 500ms. * Set to 0 to disable retries. * HTTP 4xx errors are never retried. * @default 3 */ retries?: number; /** * API base URL. Useful for self-hosted wormhole servers or testing. * @default "https://wormhole.app/api" */ apiBase?: string; /** * `User-Agent` header sent with every HTTP request. * @default "Wormhole-Client/1.0" */ userAgent?: string; /** * Maximum number of concurrent B2 chunk uploads. * @default 10 */ uploadConcurrency?: number; } //#endregion export { ClientOptions as t };