1 | import { RequestInit, Response } from "node-fetch";
|
2 | export interface HttpClient {
|
3 | request<T>(url: string, options: RequestInit): Promise<Response & {
|
4 | json(): Promise<T>;
|
5 | }>;
|
6 | }
|
7 | export declare function createHttpClient(): HttpClient;
|
8 | export declare class NodeFetchHttpClient implements HttpClient {
|
9 | request<T>(url: string, options: RequestInit): Promise<Response & {
|
10 | json(): Promise<T>;
|
11 | }>;
|
12 | }
|
13 | //# sourceMappingURL=http.d.ts.map |
\ | No newline at end of file |