### Describe the bug

I'm trying to create a basic request interceptor to set `Authorization` header. According to `axios` type definitions, I can use `config.headers.setAuthorization` method in my interceptor.

![image](https://user-images.githubusercontent.com/35261612/214972510-c90758c6-c097-4884-ae60-42b8aa297e20.png)

![image](https://user-images.githubusercontent.com/35261612/214972687-6ec33ff6-ecf6-4676-acb9-06f5a72179af.png)


TypeScript compiles my source code correctly, but it fails to run, throwing a TypeError

![image](https://user-images.githubusercontent.com/35261612/214972867-f93f5d0c-82fe-405d-990c-b75a074ad2f8.png)



### To Reproduce

https://runkit.com/embed/70jjrl0otnq7

### Code snippet

```js
import axios from 'axios';

axios.interceptors.request.use((config) => {
  config.headers.setAuthorization('Bearer 🐻');

  return config;
});

await axios.get('https://www.google.com')
```


### Expected behavior

I expect `config.headers.setAuthorization()` to correctly set `Authorization` http header for HTTP requests in runtime according to type definitions.

### Axios Version

1.2.5

### Adapter Version

HTTP

### Browser

_No response_

### Browser Version

_No response_

### Node.js Version

18.13.0

### OS

Fedora 37

### Additional Library Versions

```bash
"@types/node": "^18.11.18"
"typescript": "^4.9.4"
```


### Additional context/Screenshots

_No response_
lib/core/AxiosHeaders.js
if (utils.isFunction(filter)) {
    return filter.call(this, value, header);
  }
  if (!utils.isString(value)) return;
  if (utils.isString(filter)) {
    return value.indexOf(filter) !== -1;
  }
  if (utils.isRegExp(filter)) {
    return filter.test(value);
  }
}
function formatHeader(header) {
  return header.trim()
    .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
      return char.toUpperCase() + str;
    });
}
function buildAccessors(obj, header) {
  const accessorName = utils.toCamelCase(' ' + header);
  ['get', 'set', 'has'].forEach(methodName => {
    Object.defineProperty(obj, methodName + accessorName, {
      value: function(arg1, arg2, arg3) {
        return this[methodName].call(this, header, arg1, arg2, arg3);
      },
      configurable: true
    });
  });
}
class AxiosHeaders {