import { HttpMethod } from "./HttpMethod"; export declare class HttpRequest { readonly url: string; readonly method: HttpMethod; readonly authUrl: string; readonly headers: Record; readonly cookies: Record; readonly body: any; readonly encodeBodyAsJson: boolean; readonly form: Record; readonly followRedirects: boolean; constructor(url: string, method: HttpMethod, authUrl: string, headers: Record, cookies: Record, body: any, encodeBodyAsJson: boolean, form: Record, followRedirects: boolean); } export declare namespace HttpRequest { class Builder { private url; private method; private authUrl; private headers; private cookies; private body; private encodeBodyAsJson; private form; private followRedirects; constructor(); withUrl(url: string): this; withMethod(method: HttpMethod): this; withAuthUrl(authUrl: string): this; withHeaders(headers: Record): this; withCookies(cookies: Record): this; withBody(body: any): this; withEncodeBodyAsJson(encodeBodyAsJson: boolean): this; withForm(form: Record): this; withFollowRedirects(followRedirects: boolean): this; build(): HttpRequest; } }