declare type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE'; export declare const http: (fetch: (url: string, body?: any) => Promise) => (baseUrl: string) => (method: HttpMethod, url: string, body?: any, headers?: Record | undefined) => Promise; export declare type HttpFunction = ReturnType>; export declare function handleApiResponse(res: Response): Promise; export {}; //# sourceMappingURL=http.d.ts.map