import { HttpResponseModel, ODataHttpClient, ODataHttpClientOptions, ODataHttpMethods } from "@odata2ts/http-client-api"; import { BaseHttpClient, BaseRequestConfig } from "@odata2ts/http-client-base"; import { JQueryRequestConfig } from "./JQueryRequestConfig"; import jqXHR = JQuery.jqXHR; export { DEFAULT_ERROR_MESSAGE } from "@odata2ts/http-client-common"; export declare const FAILURE_STREAM_UNSUPPORTED: string; export declare class JQueryClient extends BaseHttpClient implements ODataHttpClient { private readonly client; private readonly config; constructor(jquery: JQueryStatic, config?: JQueryRequestConfig, clientOptions?: ODataHttpClientOptions); protected mapHeaders(jqXhr: jqXHR): Record; /** * Turns a failed request into the error to reject with. * * `responseJSON` is jQuery's own parsing of the response and covers the ordinary case. It stays empty * for a binary request though: with `responseType: "blob"` XmlHttpRequest offers neither `responseText` * nor anything jQuery could have parsed, and the server's error document sits in `response` as binary. * Reading it there is what keeps a failing `getBlob` from reporting the default message. */ private buildFailure; protected executeRequest(method: ODataHttpMethods, url: string, data: any, requestConfig: JQueryRequestConfig | undefined, internalConfig: BaseRequestConfig): Promise>; }