/** * http-fetch-adapter.ts, a pure adapter turning a standard WHATWG `fetch` into the * connector's injected HttpFetch boundary. This module references only the global * fetch/Response (no node:*), so it stays within the calendar module's purity * contract; the actual `fetch` used is supplied by the caller (the agent passes the * runtime fetch, tests pass a fake server's fetch). */ import type { HttpFetch } from './oauth-types.js'; type FetchLike = (url: string, init?: { method?: string; headers?: Record; body?: string; }) => Promise<{ status: number; ok: boolean; headers: { get(name: string): string | null; }; json(): Promise; text(): Promise; }>; /** Wrap a WHATWG-style fetch into an HttpFetch. Defaults to the global fetch. */ export declare function fetchAdapter(fetchImpl?: FetchLike): HttpFetch; export {}; //# sourceMappingURL=http-fetch-adapter.d.ts.map