I'm using third-party library with separate @types definition that looks like this:
declare namespace Foo { /* ... */ }
declare class Foo { /* ... */ }
export = Foo;
How can I import the class Foo in my code?
Also, is this such weird name duplication a good practice in Typescript? (Here's the actual definition file I'm using).