<!-- Click "Preview" for a more readable version --

Please read and follow the instructions before submitting an issue:

- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
- If you aren't sure that the issue is caused by Axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
- If you're reporting a bug, ensure it isn't already fixed in the latest Axios version.
- Don't remove any title of the issue template, or it will be treated as invalid by the bot.

⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️
-->

#### Describe the bug

class `AxiosError` is exported through axios' property, but type definition says it's exported both way.

#### To Reproduce

install axios 1.0.0 and create `index.ts`, transpile it **without `esModuleInterop`**

```js
import { AxiosError } from "axios";
import * as axios from "axios";

console.log(AxiosError);
console.log(AxiosError == axios.AxiosError);
```

Then run output file:

This will pass typescript's type checking, but raise a error at runtime:

```text
import { AxiosError } from "axios";
         ^^^^^^^^^^
SyntaxError: The requested module 'axios' does not provide an export named 'AxiosError'
```

This is because ini `index.d.ts`, 

https://github.com/axios/axios/blob/484aa4fe6addccbd32206a31eb3d2d000843066e/index.d.ts#L344

this means we have a `export class AxiosError` in our `./dist/esm/axios.js`, but it doesn't, we have only `axios.AxiosError = AxiosError` and `export default axios`,

This is correct in type as in here

https://github.com/axios/axios/blob/484aa4fe6addccbd32206a31eb3d2d000843066e/index.d.ts#L465

#### Expected behavior
A clear and concise description of what you expected to happen.

#### Environment
 - Axios Version 1.0.0
 - Node.js Version 16.17.1


#### Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

lib/axios.js
'use strict';
import utils from './utils.js';
import bind from './helpers/bind.js';
import Axios from './core/Axios.js';
import mergeConfig from './core/mergeConfig.js';
import defaults from './defaults/index.js';
import formDataToJSON from './helpers/formDataToJSON.js';
import CanceledError from './cancel/CanceledError.js';
import CancelToken from'./cancel/CancelToken.js';
import isCancel from'./cancel/isCancel.js';
import {VERSION} from './env/data.js';
import toFormData from './helpers/toFormData.js';
import AxiosError from './core/AxiosError.js';
import spread from './helpers/spread.js';
import isAxiosError from './helpers/isAxiosError.js';
/**
 * Create an instance of Axios
 *
 * @param {Object} defaultConfig The default config for the instance
 *
 * @returns {Axios} A new instance of Axios
 */
function createInstance(defaultConfig) {
  const context = new Axios(defaultConfig);