///
import { AjaxRemoteServiceOptions, FetchRemoteServiceOptions, IRemoteService } from './common-interfaces';
export declare class AjaxRemoteService implements IRemoteService {
beforeSend: (jqXHR: JQueryXHR, settings: JQueryAjaxSettings) => any;
complete?: (jqXHR: JQueryXHR, textStatus: string) => any;
headers: {
[key: string]: any;
};
constructor(options?: AjaxRemoteServiceOptions);
_applyOptions(options?: AjaxRemoteServiceOptions): void;
getFromServer(url: string, data?: Object, queryOptions?: JQueryAjaxSettings): JQueryXHR;
postToServer(url: string, data?: Object): JQueryXHR;
performPostback(url: string, args: Object): JQueryPromise;
}
export declare class FetchRemoteService implements IRemoteService> {
headers: {
[key: string]: any;
};
beforeSend: (settings: RequestInit) => void;
constructor(options?: FetchRemoteServiceOptions);
_applyOptions(options?: FetchRemoteServiceOptions): void;
getFromServer(url: string, data?: Object, queryOptions?: Object, abortController?: AbortController): JQueryPromise;
postToServer(url: string, data?: Object, abortController?: AbortController): JQueryPromise;
_performPostback(url: string, args: any, abortController?: AbortController): Promise;
performPostback(url: string, args: any, abortController?: AbortController): JQueryPromise;
private _executeRequest;
private _fetch;
private _prepareParams;
}