index.d.ts 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. // TypeScript Version: 4.7
  2. export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
  3. interface RawAxiosHeaders {
  4. [key: string]: AxiosHeaderValue;
  5. }
  6. type MethodsHeaders = Partial<{
  7. [Key in Method as Lowercase<Key>]: AxiosHeaders;
  8. } & {common: AxiosHeaders}>;
  9. type AxiosHeaderMatcher = string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean);
  10. type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any;
  11. export class AxiosHeaders {
  12. constructor(
  13. headers?: RawAxiosHeaders | AxiosHeaders | string
  14. );
  15. [key: string]: any;
  16. set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
  17. set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
  18. get(headerName: string, parser: RegExp): RegExpExecArray | null;
  19. get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
  20. has(header: string, matcher?: AxiosHeaderMatcher): boolean;
  21. delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
  22. clear(matcher?: AxiosHeaderMatcher): boolean;
  23. normalize(format: boolean): AxiosHeaders;
  24. concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
  25. toJSON(asStrings?: boolean): RawAxiosHeaders;
  26. static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
  27. static accessor(header: string | string[]): AxiosHeaders;
  28. static concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
  29. setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
  30. getContentType(parser?: RegExp): RegExpExecArray | null;
  31. getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
  32. hasContentType(matcher?: AxiosHeaderMatcher): boolean;
  33. setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
  34. getContentLength(parser?: RegExp): RegExpExecArray | null;
  35. getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
  36. hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
  37. setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
  38. getAccept(parser?: RegExp): RegExpExecArray | null;
  39. getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
  40. hasAccept(matcher?: AxiosHeaderMatcher): boolean;
  41. setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
  42. getUserAgent(parser?: RegExp): RegExpExecArray | null;
  43. getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
  44. hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
  45. setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
  46. getContentEncoding(parser?: RegExp): RegExpExecArray | null;
  47. getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
  48. hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
  49. setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
  50. getAuthorization(parser?: RegExp): RegExpExecArray | null;
  51. getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
  52. hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
  53. [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
  54. }
  55. type CommonRequestHeadersList = 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization';
  56. type ContentType = AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream';
  57. export type RawAxiosRequestHeaders = Partial<RawAxiosHeaders & {
  58. [Key in CommonRequestHeadersList]: AxiosHeaderValue;
  59. } & {
  60. 'Content-Type': ContentType
  61. }>;
  62. export type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
  63. type CommonResponseHeadersList = 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control'| 'Content-Encoding';
  64. type RawCommonResponseHeaders = {
  65. [Key in CommonResponseHeadersList]: AxiosHeaderValue;
  66. } & {
  67. "set-cookie": string[];
  68. };
  69. export type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
  70. export type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
  71. export interface AxiosRequestTransformer {
  72. (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
  73. }
  74. export interface AxiosResponseTransformer {
  75. (this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number): any;
  76. }
  77. export interface AxiosAdapter {
  78. (config: InternalAxiosRequestConfig): AxiosPromise;
  79. }
  80. export interface AxiosBasicCredentials {
  81. username: string;
  82. password: string;
  83. }
  84. export interface AxiosProxyConfig {
  85. host: string;
  86. port: number;
  87. auth?: AxiosBasicCredentials;
  88. protocol?: string;
  89. }
  90. export enum HttpStatusCode {
  91. Continue = 100,
  92. SwitchingProtocols = 101,
  93. Processing = 102,
  94. EarlyHints = 103,
  95. Ok = 200,
  96. Created = 201,
  97. Accepted = 202,
  98. NonAuthoritativeInformation = 203,
  99. NoContent = 204,
  100. ResetContent = 205,
  101. PartialContent = 206,
  102. MultiStatus = 207,
  103. AlreadyReported = 208,
  104. ImUsed = 226,
  105. MultipleChoices = 300,
  106. MovedPermanently = 301,
  107. Found = 302,
  108. SeeOther = 303,
  109. NotModified = 304,
  110. UseProxy = 305,
  111. Unused = 306,
  112. TemporaryRedirect = 307,
  113. PermanentRedirect = 308,
  114. BadRequest = 400,
  115. Unauthorized = 401,
  116. PaymentRequired = 402,
  117. Forbidden = 403,
  118. NotFound = 404,
  119. MethodNotAllowed = 405,
  120. NotAcceptable = 406,
  121. ProxyAuthenticationRequired = 407,
  122. RequestTimeout = 408,
  123. Conflict = 409,
  124. Gone = 410,
  125. LengthRequired = 411,
  126. PreconditionFailed = 412,
  127. PayloadTooLarge = 413,
  128. UriTooLong = 414,
  129. UnsupportedMediaType = 415,
  130. RangeNotSatisfiable = 416,
  131. ExpectationFailed = 417,
  132. ImATeapot = 418,
  133. MisdirectedRequest = 421,
  134. UnprocessableEntity = 422,
  135. Locked = 423,
  136. FailedDependency = 424,
  137. TooEarly = 425,
  138. UpgradeRequired = 426,
  139. PreconditionRequired = 428,
  140. TooManyRequests = 429,
  141. RequestHeaderFieldsTooLarge = 431,
  142. UnavailableForLegalReasons = 451,
  143. InternalServerError = 500,
  144. NotImplemented = 501,
  145. BadGateway = 502,
  146. ServiceUnavailable = 503,
  147. GatewayTimeout = 504,
  148. HttpVersionNotSupported = 505,
  149. VariantAlsoNegotiates = 506,
  150. InsufficientStorage = 507,
  151. LoopDetected = 508,
  152. NotExtended = 510,
  153. NetworkAuthenticationRequired = 511,
  154. }
  155. export type Method =
  156. | 'get' | 'GET'
  157. | 'delete' | 'DELETE'
  158. | 'head' | 'HEAD'
  159. | 'options' | 'OPTIONS'
  160. | 'post' | 'POST'
  161. | 'put' | 'PUT'
  162. | 'patch' | 'PATCH'
  163. | 'purge' | 'PURGE'
  164. | 'link' | 'LINK'
  165. | 'unlink' | 'UNLINK';
  166. export type ResponseType =
  167. | 'arraybuffer'
  168. | 'blob'
  169. | 'document'
  170. | 'json'
  171. | 'text'
  172. | 'stream';
  173. export type responseEncoding =
  174. | 'ascii' | 'ASCII'
  175. | 'ansi' | 'ANSI'
  176. | 'binary' | 'BINARY'
  177. | 'base64' | 'BASE64'
  178. | 'base64url' | 'BASE64URL'
  179. | 'hex' | 'HEX'
  180. | 'latin1' | 'LATIN1'
  181. | 'ucs-2' | 'UCS-2'
  182. | 'ucs2' | 'UCS2'
  183. | 'utf-8' | 'UTF-8'
  184. | 'utf8' | 'UTF8'
  185. | 'utf16le' | 'UTF16LE';
  186. export interface TransitionalOptions {
  187. silentJSONParsing?: boolean;
  188. forcedJSONParsing?: boolean;
  189. clarifyTimeoutError?: boolean;
  190. }
  191. export interface GenericAbortSignal {
  192. readonly aborted: boolean;
  193. onabort?: ((...args: any) => any) | null;
  194. addEventListener?: (...args: any) => any;
  195. removeEventListener?: (...args: any) => any;
  196. }
  197. export interface FormDataVisitorHelpers {
  198. defaultVisitor: SerializerVisitor;
  199. convertValue: (value: any) => any;
  200. isVisitable: (value: any) => boolean;
  201. }
  202. export interface SerializerVisitor {
  203. (
  204. this: GenericFormData,
  205. value: any,
  206. key: string | number,
  207. path: null | Array<string | number>,
  208. helpers: FormDataVisitorHelpers
  209. ): boolean;
  210. }
  211. export interface SerializerOptions {
  212. visitor?: SerializerVisitor;
  213. dots?: boolean;
  214. metaTokens?: boolean;
  215. indexes?: boolean | null;
  216. }
  217. // tslint:disable-next-line
  218. export interface FormSerializerOptions extends SerializerOptions {
  219. }
  220. export interface ParamEncoder {
  221. (value: any, defaultEncoder: (value: any) => any): any;
  222. }
  223. export interface CustomParamsSerializer {
  224. (params: Record<string, any>, options?: ParamsSerializerOptions): string;
  225. }
  226. export interface ParamsSerializerOptions extends SerializerOptions {
  227. encode?: ParamEncoder;
  228. serialize?: CustomParamsSerializer;
  229. }
  230. type MaxUploadRate = number;
  231. type MaxDownloadRate = number;
  232. type BrowserProgressEvent = any;
  233. export interface AxiosProgressEvent {
  234. loaded: number;
  235. total?: number;
  236. progress?: number;
  237. bytes: number;
  238. rate?: number;
  239. estimated?: number;
  240. upload?: boolean;
  241. download?: boolean;
  242. event?: BrowserProgressEvent;
  243. }
  244. type Milliseconds = number;
  245. type AxiosAdapterName = 'xhr' | 'http' | string;
  246. type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
  247. export type AddressFamily = 4 | 6 | undefined;
  248. export interface LookupAddressEntry {
  249. address: string;
  250. family?: AddressFamily;
  251. }
  252. export type LookupAddress = string | LookupAddressEntry;
  253. export interface AxiosRequestConfig<D = any> {
  254. url?: string;
  255. method?: Method | string;
  256. baseURL?: string;
  257. transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
  258. transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
  259. headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders;
  260. params?: any;
  261. paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
  262. data?: D;
  263. timeout?: Milliseconds;
  264. timeoutErrorMessage?: string;
  265. withCredentials?: boolean;
  266. adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
  267. auth?: AxiosBasicCredentials;
  268. responseType?: ResponseType;
  269. responseEncoding?: responseEncoding | string;
  270. xsrfCookieName?: string;
  271. xsrfHeaderName?: string;
  272. onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
  273. onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
  274. maxContentLength?: number;
  275. validateStatus?: ((status: number) => boolean) | null;
  276. maxBodyLength?: number;
  277. maxRedirects?: number;
  278. maxRate?: number | [MaxUploadRate, MaxDownloadRate];
  279. beforeRedirect?: (options: Record<string, any>, responseDetails: {headers: Record<string, string>, statusCode: HttpStatusCode}) => void;
  280. socketPath?: string | null;
  281. transport?: any;
  282. httpAgent?: any;
  283. httpsAgent?: any;
  284. proxy?: AxiosProxyConfig | false;
  285. cancelToken?: CancelToken;
  286. decompress?: boolean;
  287. transitional?: TransitionalOptions;
  288. signal?: GenericAbortSignal;
  289. insecureHTTPParser?: boolean;
  290. env?: {
  291. FormData?: new (...args: any[]) => object;
  292. };
  293. formSerializer?: FormSerializerOptions;
  294. family?: AddressFamily;
  295. lookup?: ((hostname: string, options: object, cb: (err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily) => void) => void) |
  296. ((hostname: string, options: object) => Promise<[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress>);
  297. withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
  298. }
  299. // Alias
  300. export type RawAxiosRequestConfig<D = any> = AxiosRequestConfig<D>;
  301. export interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
  302. headers: AxiosRequestHeaders;
  303. }
  304. export interface HeadersDefaults {
  305. common: RawAxiosRequestHeaders;
  306. delete: RawAxiosRequestHeaders;
  307. get: RawAxiosRequestHeaders;
  308. head: RawAxiosRequestHeaders;
  309. post: RawAxiosRequestHeaders;
  310. put: RawAxiosRequestHeaders;
  311. patch: RawAxiosRequestHeaders;
  312. options?: RawAxiosRequestHeaders;
  313. purge?: RawAxiosRequestHeaders;
  314. link?: RawAxiosRequestHeaders;
  315. unlink?: RawAxiosRequestHeaders;
  316. }
  317. export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
  318. headers: HeadersDefaults;
  319. }
  320. export interface CreateAxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
  321. headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
  322. }
  323. export interface AxiosResponse<T = any, D = any> {
  324. data: T;
  325. status: number;
  326. statusText: string;
  327. headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
  328. config: InternalAxiosRequestConfig<D>;
  329. request?: any;
  330. }
  331. export class AxiosError<T = unknown, D = any> extends Error {
  332. constructor(
  333. message?: string,
  334. code?: string,
  335. config?: InternalAxiosRequestConfig<D>,
  336. request?: any,
  337. response?: AxiosResponse<T, D>
  338. );
  339. config?: InternalAxiosRequestConfig<D>;
  340. code?: string;
  341. request?: any;
  342. response?: AxiosResponse<T, D>;
  343. isAxiosError: boolean;
  344. status?: number;
  345. toJSON: () => object;
  346. cause?: Error;
  347. static from<T = unknown, D = any>(
  348. error: Error | unknown,
  349. code?: string,
  350. config?: InternalAxiosRequestConfig<D>,
  351. request?: any,
  352. response?: AxiosResponse<T, D>,
  353. customProps?: object,
  354. ): AxiosError<T, D>;
  355. static readonly ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
  356. static readonly ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
  357. static readonly ERR_BAD_OPTION = "ERR_BAD_OPTION";
  358. static readonly ERR_NETWORK = "ERR_NETWORK";
  359. static readonly ERR_DEPRECATED = "ERR_DEPRECATED";
  360. static readonly ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
  361. static readonly ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
  362. static readonly ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
  363. static readonly ERR_INVALID_URL = "ERR_INVALID_URL";
  364. static readonly ERR_CANCELED = "ERR_CANCELED";
  365. static readonly ECONNABORTED = "ECONNABORTED";
  366. static readonly ETIMEDOUT = "ETIMEDOUT";
  367. }
  368. export class CanceledError<T> extends AxiosError<T> {
  369. }
  370. export type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;
  371. export interface CancelStatic {
  372. new (message?: string): Cancel;
  373. }
  374. export interface Cancel {
  375. message: string | undefined;
  376. }
  377. export interface Canceler {
  378. (message?: string, config?: AxiosRequestConfig, request?: any): void;
  379. }
  380. export interface CancelTokenStatic {
  381. new (executor: (cancel: Canceler) => void): CancelToken;
  382. source(): CancelTokenSource;
  383. }
  384. export interface CancelToken {
  385. promise: Promise<Cancel>;
  386. reason?: Cancel;
  387. throwIfRequested(): void;
  388. }
  389. export interface CancelTokenSource {
  390. token: CancelToken;
  391. cancel: Canceler;
  392. }
  393. export interface AxiosInterceptorOptions {
  394. synchronous?: boolean;
  395. runWhen?: (config: InternalAxiosRequestConfig) => boolean;
  396. }
  397. export interface AxiosInterceptorManager<V> {
  398. use(onFulfilled?: ((value: V) => V | Promise<V>) | null, onRejected?: ((error: any) => any) | null, options?: AxiosInterceptorOptions): number;
  399. eject(id: number): void;
  400. clear(): void;
  401. }
  402. export class Axios {
  403. constructor(config?: AxiosRequestConfig);
  404. defaults: AxiosDefaults;
  405. interceptors: {
  406. request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
  407. response: AxiosInterceptorManager<AxiosResponse>;
  408. };
  409. getUri(config?: AxiosRequestConfig): string;
  410. request<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
  411. get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
  412. delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
  413. head<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
  414. options<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
  415. post<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
  416. put<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
  417. patch<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
  418. postForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
  419. putForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
  420. patchForm<T = any, R = AxiosResponse<T>, D = any>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
  421. }
  422. export interface AxiosInstance extends Axios {
  423. <T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
  424. <T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
  425. defaults: Omit<AxiosDefaults, 'headers'> & {
  426. headers: HeadersDefaults & {
  427. [key: string]: AxiosHeaderValue
  428. }
  429. };
  430. }
  431. export interface GenericFormData {
  432. append(name: string, value: any, options?: any): any;
  433. }
  434. export interface GenericHTMLFormElement {
  435. name: string;
  436. method: string;
  437. submit(): void;
  438. }
  439. export function getAdapter(adapters: AxiosAdapterConfig | AxiosAdapterConfig[] | undefined): AxiosAdapter;
  440. export function toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData;
  441. export function formToJSON(form: GenericFormData|GenericHTMLFormElement): object;
  442. export function isAxiosError<T = any, D = any>(payload: any): payload is AxiosError<T, D>;
  443. export function spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
  444. export function isCancel(value: any): value is Cancel;
  445. export function all<T>(values: Array<T | Promise<T>>): Promise<T[]>;
  446. export interface AxiosStatic extends AxiosInstance {
  447. create(config?: CreateAxiosDefaults): AxiosInstance;
  448. Cancel: CancelStatic;
  449. CancelToken: CancelTokenStatic;
  450. Axios: typeof Axios;
  451. AxiosError: typeof AxiosError;
  452. HttpStatusCode: typeof HttpStatusCode;
  453. readonly VERSION: string;
  454. isCancel: typeof isCancel;
  455. all: typeof all;
  456. spread: typeof spread;
  457. isAxiosError: typeof isAxiosError;
  458. toFormData: typeof toFormData;
  459. formToJSON: typeof formToJSON;
  460. getAdapter: typeof getAdapter;
  461. CanceledError: typeof CanceledError;
  462. AxiosHeaders: typeof AxiosHeaders;
  463. }
  464. declare const axios: AxiosStatic;
  465. export default axios;