title: TypeScript issue with importing declarations
body: <p>I am having an issue with importing declarations from an extended file (I am using <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/tree/3fc1377ce29dd9670975cb68615edf1b819fc4a5/sockjs-client" rel="noreferrer">this</a> typing). According to <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/3fc1377ce29dd9670975cb68615edf1b819fc4a5/sockjs-client/sockjs-client-tests.ts" rel="noreferrer">example</a>, I should put this into my code:</p>
  
  <pre><code>import * as SockJS from 'sockjs-client';
  import BaseEvent = __SockJSClient.BaseEvent;
  import SockJSClass = __SockJSClient.SockJSClass;
  </code></pre>
  
  <p>However, when I try to do this as following:</p>
  
  <pre><code>module Test {
      import * as SockJS from 'sockjs-client';
      import BaseEvent = __SockJSClient.BaseEvent;
      import SockJSClass = __SockJSClient.SockJSClass;
  
      export class Example {
          constructor() {......
  }}}
  </code></pre>
  
  <p>I get the following error from the compiler:</p>
  
  <pre><code>error TS1147: Import declarations in a namespace cannot reference a module.
  </code></pre>
  
  <p>Am I doing something wrong? Or is there any issue with the typing itself?</p>
  
  <p>Thanks<br>uksz</p>