<h4 dir="auto">Describe the bug</h4>
<p dir="auto"><code class="notranslate">AxiosHeaders</code>, <code class="notranslate">AxiosError</code>, <code class="notranslate">CanceledError</code>  and <code class="notranslate">Axios</code> are "exported" in the type definitions <code class="notranslate">index.d.ts</code>, but not exported in the module.</p>
<h4 dir="auto">To Reproduce</h4>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { AxiosHeaders } = require('axios');  // Allowed by Typescript

const headers = new AxiosHeaders({ 'name': 'value' }); // &lt;-- throws Error as AxiosHeaders is not actually exported"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> AxiosHeaders <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'axios'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>  <span class="pl-c">// Allowed by Typescript</span>

<span class="pl-k">const</span> <span class="pl-s1">headers</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">AxiosHeaders</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">'name'</span>: <span class="pl-s">'value'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;-- throws Error as AxiosHeaders is not actually exported</span></pre></div>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto"><del>Types are not exported, but only declared (<code class="notranslate">declare class</code> instead of <code class="notranslate">export class</code>).</del></p>
<p dir="auto">Classes are exported and can be imported and used like so:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { AxiosError, AxiosHeaders, Axios, CanceledError } from 'axios';

new AxiosError();
new AxiosHeaders();
new Axios();
new CanceledError();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">AxiosError</span><span class="pl-kos">,</span> <span class="pl-smi">AxiosHeaders</span><span class="pl-kos">,</span> <span class="pl-smi">Axios</span><span class="pl-kos">,</span> <span class="pl-smi">CanceledError</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'axios'</span><span class="pl-kos">;</span>

<span class="pl-k">new</span> <span class="pl-smi">AxiosError</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">new</span> <span class="pl-smi">AxiosHeaders</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">new</span> <span class="pl-smi">Axios</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">new</span> <span class="pl-smi">CanceledError</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version 1.1.0</li>
<li>Node.js Version 16.15.1</li>
<li>OS: OSX 12.5</li>
<li>Typescript 4.6.3 (any version)</li>
<li>React 17</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto">none</p>
<p dir="auto">Hello,</p>
<p dir="auto">When I tried to update the axios to version 1.0.0, I get this error. It works fine with 0.27.2</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/114129264/193981607-38a19d0f-0780-411e-b48a-a4ff28fa4e21.png"><img src="https://user-images.githubusercontent.com/114129264/193981607-38a19d0f-0780-411e-b48a-a4ff28fa4e21.png" alt="Untitled" style="max-width: 100%;"></a></p>
<p dir="auto">In the bootstrap.js, I used it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';"><pre class="notranslate"><code class="notranslate">window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
</code></pre></div>
<p dir="auto">Please advise. Thank you.</p>