Currently, I am utilizing a third-party library that comes with a separate @types definition structured as follows:
declare namespace Bar { /* ... */ }
declare class Bar { /* ... */ }
export = Bar;
How should I go about importing the Bar class into my code?
Furthermore, is it considered a best practice in TypeScript to have this kind of name duplication? (You can take a look at the actual definition file here.)