import { Either, Left, Right } from '@typed/either'; import { Json } from './Json'; import { HttpOptions, HttpResponse, TestHttpEnv } from './types'; /** * Create a test-friendly http environment * @param testHttp :: (url -> HttpOptions -> Either Error HttpResponse) * @param timer :: Timer */ export declare function createTestHttpEnv(testHttp: (url: string, options: HttpOptions) => Either | PromiseLike>): TestHttpEnv; export declare function createSuccessfulResponse(options?: Partial>): Right>; export declare function createFailedResponse(error: Error): Left; export declare function createHttpResponse(options?: Partial>): HttpResponse; export declare function createJsonResponse(jsonReadyValue: A, options?: Partial>): HttpResponse; //# sourceMappingURL=createTestHttpEnv.d.ts.map