import { HttpBody } from "../http"; import { StringBody } from "./string-body"; /** * Deserializes the provided body and returns the parsed object. * @param body HttpBody to be deserialized */ export declare function asJson(body: HttpBody): Promise; /** * Creates an HttpBody with the JSON representation of the provided object * @param obj Object that should be serialized as JSON for body content */ export declare function jsonBody(obj: any): StringBody; /** * Creates an HttpBody with the provided content * @param content Content of the body */ export declare function stringBody(content: string): StringBody;