title: Typescript declarations file for Node C++ Addon
body: <p>I have a Node C++ Addon that provides a wrapped class similar to the one in the Node documentation. I can require() my addon and then get the constructor for my class to create an instance.</p>
  
  <pre><code>const { MyClass } = require('myaddon');
  const obj = new MyClass('data');
  </code></pre>
  
  <p>Now I want to use TypeScript to do the same. I can't find the right combination of .d.ts file and import statement to make this work. I guess ideally I'd like to declare my class is in the module and has a constructor that takes a string. I could then just do:</p>
  
  <pre><code>import { MyClass } from 'myaddon';
  const obj = new MyClass('data');
  </code></pre>
  
  <p>Any examples of this that people have seen?</p>