import { HttpOptions, HttpResponse } from 'vue-resource'; import { Resp } from '../../types'; export declare class HttpBody { private cls?; constructor(cls?: any); /** * Serializes the response body of a call to the WebServer * @param promise Any call of VUE RESOURCE */ call(promise: PromiseLike): Promise>; /** * Serializes the response body of GET method to the WebServer * @param uri URI endpoint * @param options * @param endpoint */ GET(uri: string, options?: HttpOptions, endpoint?: boolean): Promise>; /** * Serializes the response body of POST method to the WebServer * @param uri URI endpoint * @param body payload * @param options * @param endpoint */ POST(uri: string, body?: any, options?: HttpOptions, endpoint?: boolean): Promise>; /** * Serializes the response body of PUT method to the WebServer * @param uri URI endpoint * @param body payload * @param options * @param endpoint */ PUT(uri: string, body?: any, options?: HttpOptions, endpoint?: boolean): Promise>; /** * Serializes the response body of DELETE method to the WebServer * @param uri URI endpoint * @param endpoint * @param options */ DELETE(uri: string, endpoint?: boolean, options?: HttpOptions): Promise>; /** * Clone a given entity * @param entity */ clone(entity: any): void; }