export declare class HttpRequest { readonly url: string; /** * The request body, or `null` if one isn't set. * * Bodies are not enforced to be immutable, as they can include a reference to any * user-defined data type. However, interceptors should take care to preserve * idempotence by treating them as such. */ readonly body: T | null; /** * Outgoing headers for this request. */ readonly headers: any; /** * Whether this request should be made in a way that exposes progress events. * * Progress events are expensive (change detection runs on each event) and so * they should only be requested if the consumer intends to monitor them. */ readonly reportProgress: boolean; /** * Whether this request should be sent with outgoing credentials (cookies). */ readonly withCredentials: boolean; /** * The expected response type of the server. * * This is used to parse the response appropriately before returning it to * the requestee. */ readonly responseType: 'arraybuffer' | 'blob' | 'json' | 'text'; /** * Outgoing URL parameters. */ readonly params: any; /** * The outgoing HTTP request method. */ readonly method: string; /** * The outgoing URL with all URL parameters set. */ readonly urlWithParams: string; constructor(method: string, url: string, third?: any, fourth?: any); /** * Transform the free-form body into a serialized format suitable for * transmission to the server. */ serializeBody(): any; /** * Examine the body and attempt to infer an appropriate MIME type * for it. * * If no such type can be inferred, this method will return `null`. */ detectContentTypeHeader(): string | null; }