import type { AjaxInstance, AjaxOption, AnyObj } from './types'; export type OldAjaxMethods = 'query' | 'create' | 'deletes' | 'putWay' | 'patchWay'; export type CustomAjaxMethods = (path: string, config?: Partial) => (data?: any, expend?: string, config?: AjaxOption) => Promise; export declare const generateCustomMethod: (ctx: AjaxInstance, name: OldAjaxMethods) => CustomAjaxMethods; declare function addCompatibleMethods>(ctx: AjaxInstance): void; export default addCompatibleMethods;