interface AxiosRetryConfig { retries?: number; shouldResetTimeout?: boolean; retryCondition?: (error: AxiosError) => boolean | Promise; retryDelay?: (retryCount: number, error: AxiosError) => number; onRetry?: (retryCount: number, error: AxiosError, requestConfig: AxiosRequestConfig) => Promise | void; } interface AxiosRetryConfigExtended extends AxiosRetryConfig { retryCount?: number; lastRequestTime?: number; } interface AxiosRetryReturn { requestInterceptorId: number; responseInterceptorId: number; } interface AxiosRetry { (axiosInstance: AxiosStatic | AxiosInstance, axiosRetryConfig?: AxiosRetryConfig): AxiosRetryReturn; isNetworkError(error: AxiosError): boolean; isRetryableError(error: AxiosError): boolean; isSafeRequestError(error: AxiosError): boolean; isIdempotentRequestError(error: AxiosError): boolean; isNetworkOrIdempotentRequestError(error: AxiosError): boolean; exponentialDelay(retryNumber?: number, error?: AxiosError, delayFactor?: number): number; } declare function isNetworkError(error: AxiosError): boolean; declare function isRetryableError(error: AxiosError): boolean; declare function isSafeRequestError(error: AxiosError): boolean; declare function isIdempotentRequestError(error: AxiosError): boolean; declare function isNetworkOrIdempotentRequestError(error: AxiosError): boolean; declare function exponentialDelay(retryNumber?: number, _error?: AxiosError | undefined, delayFactor?: number): number; declare const DEFAULT_OPTIONS: Required; declare const axiosRetry: AxiosRetry; type AxiosRequestTransformer = (this: InternalAxiosRequestConfig, data: any, headers: Headers) => any; type AxiosResponseTransformer = (this: InternalAxiosRequestConfig, data: any, headers: HeadersInit, status?: number) => any; type ResponseType = "arrayBuffer" | "blob" | "json" | "text" | "stream"; type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK'; interface FormDataVisitorHelpers { defaultVisitor: SerializerVisitor; convertValue: (value: any) => any; isVisitable: (value: any) => boolean; } type SerializerVisitor = (this: GenericFormData, value: any, key: string | number, path: null | Array, helpers: FormDataVisitorHelpers) => boolean; interface GenericFormData { append(name: string, value: any, options?: any): any; } interface SerializerOptions { visitor?: SerializerVisitor; dots?: boolean; metaTokens?: boolean; indexes?: boolean | null; } type ParamEncoder = (value: any, defaultEncoder: (value: any) => any) => any; type CustomParamsSerializer = (params: Record, options?: ParamsSerializerOptions) => string; interface ParamsSerializerOptions extends SerializerOptions { encode?: ParamEncoder; serialize?: CustomParamsSerializer; } interface AxiosRequestConfig { url?: string; method?: Method | string; baseURL?: string; transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]; transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]; headers?: HeadersInit; params?: Record; paramsSerializer?: CustomParamsSerializer; data?: D; timeout?: number; timeoutErrorMessage?: string; withCredentials?: boolean; responseType?: ResponseType; validateStatus?: ((status: number) => boolean) | null; signal?: AbortSignal; fetchOptions?: RequestInit; retry?: AxiosRetryConfigExtended; } type RawAxiosRequestConfig = AxiosRequestConfig; interface InternalAxiosRequestConfig extends Omit, "headers"> { headers: Headers; } interface AxiosDefaults extends Omit, "headers"> { headers: HeadersInit; } interface CreateAxiosDefaults extends Omit, "headers"> { headers?: HeadersInit; } interface AxiosResponse { data: T; status: number; statusText: string; headers: Headers; config: InternalAxiosRequestConfig; request?: Request; } type AxiosPromise = Promise>; interface AxiosInterceptorOptions { runWhen?: (config: InternalAxiosRequestConfig) => boolean; } type FulfillCallback = ((value: V) => V | Promise) | null; type RejectCallback = ((error: any) => any) | null; interface AxiosInterceptorManager { use(onFulfilled?: FulfillCallback, onRejected?: RejectCallback, options?: AxiosInterceptorOptions): number; eject(id: number): void; clear(): void; } type AxiosInterceptor = { fulfilled?: FulfillCallback; rejected?: RejectCallback; synchronous?: boolean; runWhen?: (config: InternalAxiosRequestConfig) => boolean; }; interface AxiosInstance { defaults: CreateAxiosDefaults; interceptors: { request: AxiosInterceptorManager; response: AxiosInterceptorManager; }; getUri: (config?: AxiosRequestConfig) => string; request: , D = any>(config: AxiosRequestConfig) => Promise; get: , D = any>(url: string, config?: AxiosRequestConfig | undefined) => Promise; delete: , D = any>(url: string, config?: AxiosRequestConfig | undefined) => Promise; head: , D = any>(url: string, config?: AxiosRequestConfig | undefined) => Promise; options: , D = any>(url: string, config?: AxiosRequestConfig | undefined) => Promise; post: , D = any>(url: string, data?: D | undefined, config?: AxiosRequestConfig | undefined) => Promise; put: , D = any>(url: string, data?: D | undefined, config?: AxiosRequestConfig | undefined) => Promise; patch: , D = any>(url: string, data?: D | undefined, config?: AxiosRequestConfig | undefined) => Promise; postForm: , D = any>(url: string, data?: D | undefined, config?: AxiosRequestConfig | undefined) => Promise; putForm: , D = any>(url: string, data?: D | undefined, config?: AxiosRequestConfig | undefined) => Promise; patchForm: , D = any>(url: string, data?: D | undefined, config?: AxiosRequestConfig | undefined) => Promise; , D = any>(config: AxiosRequestConfig): Promise; , D = any>(url: string, config?: AxiosRequestConfig): Promise; } interface AxiosStatic extends AxiosInstance { create: (defaults?: CreateAxiosDefaults) => AxiosInstance; } declare class AxiosError extends Error { config?: InternalAxiosRequestConfig; code?: string; request?: any; response?: AxiosResponse; status?: number; isAxiosError: boolean; constructor(message?: string, code?: string, config?: InternalAxiosRequestConfig, request?: any, response?: AxiosResponse); static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE"; static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION"; static readonly ERR_NETWORK = "ERR_NETWORK"; static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE"; static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST"; static readonly ERR_INVALID_URL = "ERR_INVALID_URL"; static readonly ERR_CANCELED = "ERR_CANCELED"; static readonly ECONNABORTED = "ECONNABORTED"; static readonly ETIMEDOUT = "ETIMEDOUT"; } declare class CanceledError extends AxiosError { constructor(message: string | null | undefined, config?: InternalAxiosRequestConfig, request?: any); } declare function isAxiosError(payload: any): payload is AxiosError; declare const axios: AxiosStatic; export { AxiosError as A, isRetryableError as B, CanceledError as C, isSafeRequestError as D, isIdempotentRequestError as E, type FormDataVisitorHelpers as F, isNetworkOrIdempotentRequestError as G, exponentialDelay as H, type InternalAxiosRequestConfig as I, DEFAULT_OPTIONS as J, type Method as M, type ParamEncoder as P, type ResponseType as R, type SerializerVisitor as S, axios as a, type AxiosRequestTransformer as b, type AxiosResponseTransformer as c, type SerializerOptions as d, type CustomParamsSerializer as e, type ParamsSerializerOptions as f, type AxiosRequestConfig as g, type RawAxiosRequestConfig as h, isAxiosError as i, type AxiosDefaults as j, type CreateAxiosDefaults as k, type AxiosResponse as l, type AxiosPromise as m, type AxiosInterceptorOptions as n, type FulfillCallback as o, type RejectCallback as p, type AxiosInterceptorManager as q, type AxiosInterceptor as r, type AxiosInstance as s, type AxiosStatic as t, axiosRetry as u, type AxiosRetryConfig as v, type AxiosRetryConfigExtended as w, type AxiosRetryReturn as x, type AxiosRetry as y, isNetworkError as z };