import { RequestInit, Response } from 'node-fetch'; interface InternalHttpResponse extends Response { parsedBody?: T; } declare function http(input: string, init: RequestInit | undefined): Promise>; interface CreateHttpClientOptions extends RequestInit { baseUrl: string; /** * Timeout in milliseconds */ timeout?: number; } interface HttpClientRequestInit extends Omit { body?: Record; searchParams?: Record; } export declare const createHttpClient: ({ baseUrl, timeout, ...globalOptions }: CreateHttpClientOptions, fetcher?: typeof http) => (path: string, options?: HttpClientRequestInit) => Promise<{ body: T; }>; export declare const getRequestInit: (options: any) => RequestInit; export declare const getUrl: ({ path, baseUrl, searchParams, }: { baseUrl: string; path: string; searchParams?: Record; }) => string; export {}; //# sourceMappingURL=httpClient.d.ts.map