import type { ExtendOptionsInit, ResponseError, RequestInterceptor, ResponseInterceptor, RequestOptionsInit, RequestMethod, RequestOptionsWithResponse, RequestOptionsWithoutResponse, RequestResponse } from 'umi-request'; export interface IRequestOptions extends ExtendOptionsInit { requestInterceptors?: Array; responseInterceptors?: Array; delay?: number; loading?: boolean; } export interface IMixOptions { noLoading?: boolean; } export interface IMixRequestMethod extends RequestMethod { (url: string, options: RequestOptionsWithResponse, mixOptions?: IMixOptions): Promise>; (url: string, options: RequestOptionsWithoutResponse, mixOptions?: IMixOptions): Promise; (url: string, options?: RequestOptionsInit, mixOptions?: IMixOptions): R extends true ? Promise> : Promise; instance: RequestMethod; } export declare class Request { options: IRequestOptions; delayInstance: any; loadingInstance: any; delay: number; lodingLock: boolean; constructor(options: IRequestOptions); initInterceptors(options: IRequestOptions): { tempReqs: RequestInterceptor[]; tempRess: ResponseInterceptor[]; }; genFackInstance(requestInstance: RequestMethod): IMixRequestMethod; sophRequest(): IMixRequestMethod; resInterceptorsHandler(temresponse: Response, temoptions: RequestOptionsInit, resInter?: Array): Response | Promise; interceptorsHandler(temurl: any, temoptions: any, reqInter?: Array): { url: any; options: any; }; errorHandler(error: ResponseError): Response; closeLoading(): void; }