export type ReactionObj = Record) => void>; export type Method = 'get' | 'post' | 'put' | 'set' | 'delete' | 'fetch' | 'update'; export type Enctype = "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | "application/json"; export declare const defaultEnctype = "application/x-www-form-urlencoded"; export type ExtraConfig = { headers?: any; baseURL?: string; timeout?: number; withCredentals?: boolean; auth?: { username: string; password: string; }; responseType?: string; responseEncoding?: string; maxRedirects?: number; }; type AjaxConfigGet = { url: string; method?: 'get'; queryParams?: Data; extraConfig?: ExtraConfig; }; type AjaxConfigNotGet = { url: string; method: 'post' | 'put' | 'set' | 'delete' | 'fetch' | 'update'; queryParams?: Data; body?: { contentType?: Enctype; data?: Data; }; extraConfig?: ExtraConfig; }; export type AjaxConfig = AjaxConfigGet | AjaxConfigNotGet; export declare const isGet: (ajaxConfig: AjaxConfig) => boolean; export type RequestSchema = { method: Method; url: string; params: Data | null; data: Data | null; headers?: Record | null; baseURL?: string; timeout?: number; withCredentals?: boolean; auth?: { username: string; password: string; }; responseType?: string; responseEncoding?: string; maxRedirects?: number; }; export type ResponseSchema = { data: any; status: number; statusText: string; headers: any; config: RequestSchema; }; export declare function ajaxConfigToReqSchema(ajaxConf: AjaxConfig): RequestSchema; export {};