/** * HTTP request descriptor. Represents a request that can be executed * by any HTTP client - the library never performs I/O itself at the * protocol layer. */ export interface HttpRequest { url: string; method: 'GET' | 'POST'; headers: Record; body?: string; } /** * A function that executes an {@link HttpRequest} and returns a standard * {@link Response}. Users can supply their own implementation to use * any HTTP client (e.g. `undici`, `axios`, a caching proxy, etc.). */ export type HttpExecutor = (request: HttpRequest) => Promise; /** * Default executor backed by the global `fetch` function. */ export declare const defaultHttpExecutor: HttpExecutor; //# sourceMappingURL=http.d.ts.map