import { RequestArgs, ResponseArgs } from './type'; export interface AjaxRetryExpendRequestArgs { maxRetryCount: number; retryCount?: number; retryCondition: (response: ResponseArgs, requestArgs?: RequestArgs) => boolean; } export declare type AjaxRetryOptions = AjaxRetryExpendRequestArgs; /** * 使用interceptor 实现retry功能 * @param ajaxInstance * @param maxRetryCount * @param retryCount * @param retryCondition */ export default function ajaxRetry(ajaxInstance: any, { maxRetryCount, retryCount, retryCondition }: AjaxRetryOptions): void;