import { HttpMethod, HttpBody } from "../http"; import { HttpRequestImpl } from "./http-request-impl"; import { RequestHttpHeaders } from "../http-headers"; export declare type RequestParams = { url: string; method: HttpMethod; body?: HttpBody | string; headers?: RequestHttpHeaders; }; export declare type RequestHelperFactoryParams = Omit; /** * Instantiates an HttpRequest based on the provided request information * @param obj Request representative object. */ export declare function req({ url, method, body, headers }: RequestParams): HttpRequestImpl; export declare function GET(url: string, headers?: RequestHttpHeaders): HttpRequestImpl; export declare function POST(url: string, body: HttpBody | string, headers?: RequestHttpHeaders): HttpRequestImpl; export declare function PUT(url: string, body: HttpBody | string, headers?: RequestHttpHeaders): HttpRequestImpl; export declare function PATCH(url: string, body: HttpBody | string, headers?: RequestHttpHeaders): HttpRequestImpl; export declare function DELETE(url: string, headers?: RequestHttpHeaders, body?: HttpBody | string): HttpRequestImpl; export declare function HEAD(url: string, headers: RequestHttpHeaders): HttpRequestImpl;