title: Imported classes does not appear on d.ts file
body: <p>This is related to this question: <a href="https://stackoverflow.com/questions/24861405/can-i-import-a-typescript-class-from-my-own-module-to-global">Can I import a TypeScript class from my own module to global?</a></p>
  
  <p>I have made a module and I want to expose a class to the global scope.</p>
  
  <pre><code>module Foo {
      export class Bar {
          x: number
      }
  
      /* Some more interfaces and classes to be used only in this module */
  }
  </code></pre>
  
  <p>At first, I made an interface and defined a new variable to achieve this.</p>
  
  <pre><code>interface Bar extends Foo.Bar {
  }
  var Bar = Foo.Bar;
  </code></pre>
  
  <p>The generated JavaScript had my Bar as a variable.</p>
  
  <pre><code>var Foo;
  (function (Foo) {
      var Bar = (function () {
          function Bar() {
          }
          return Bar;
      })();
      Foo.Bar = Bar;
  })(Foo || (Foo = {}));
  
  var Bar = Foo.Bar;
  //# sourceMappingURL=app.js.map
  </code></pre>
  
  <p>The d.ts file included my global Bar interface and variable.</p>
  
  <pre><code>declare module Foo {
      class Bar {
          public x: number;
      }
  }
  interface Bar extends Foo.Bar {
  }
  declare var Bar: typeof Foo.Bar;
  </code></pre>
  
  <p>Then, <strong>I noticed that I can simply use <code>import</code> to expose my class</strong>, and I did so.</p>
  
  <pre><code>import Bar = Foo.Bar;
  </code></pre>
  
  <p>The resulting JavaScript file was exactly same.</p>
  
  <pre><code>var Foo;
  (function (Foo) {
      var Bar = (function () {
          function Bar() {
          }
          return Bar;
      })();
      Foo.Bar = Bar;
  })(Foo || (Foo = {}));
  var Bar = Foo.Bar;
  //# sourceMappingURL=app.js.map
  </code></pre>
  
  <p>However, my d.ts file now does not include any information about the global Bar.</p>
  
  <pre><code>declare module Foo {
      class Bar {
          public x: number;
      }
  }
  </code></pre>
  
  <p>Is this an intended result? I think this would cause errors, as it would allow declaring variables with the same name, when I include the JavaScript file and d.ts file in other project.</p>