title: exporting imports as a namespace with TypeScript
body: <p>My question is pretty much the same as this one:
  <a href="https://github.com/Microsoft/TypeScript/issues/4529" rel="noreferrer">https://github.com/Microsoft/TypeScript/issues/4529</a></p>
  
  <p>Say I have this:</p>
  
  <pre><code>//exported imports
  export {ISumanOpts, IGlobalSumanObj} from 'suman-types/dts/global';
  export {ITestCaseParam} from 'suman-types/dts/test-suite';
  export {IHookParam} from 'suman-types/dts/test-suite';
  export {IDescribeFn} from 'suman-types/dts/describe';
  export {ItFn, ITestDataObj} from 'suman-types/dts/it';
  export {IBeforeFn} from 'suman-types/dts/before';
  export {IBeforeEachFn} from 'suman-types/dts/before-each';
  export {IAfterFn} from 'suman-types/dts/after';
  export {IAfterEachFn} from 'suman-types/dts/after-each';
  export {DefineObjectContext as IDefObjCtx} from "./test-suite-helpers/define-options-classes";
  export {DefineObjectTestCase as IDefObjTestCase} from "./test-suite-helpers/define-options-classes";
  export {DefineObjectAllHook as IDefObjAllHook} from "./test-suite-helpers/define-options-classes";
  export {DefineObjectEachHook as IDefObjEachHook} from "./test-suite-helpers/define-options-classes";
  
  
  export namespace s {
  
    // ! I want to move all of the above exported items into a namespace here
  
  }
  </code></pre>
  
  <p>Is there a way to use <code>namespace</code> or <code>module</code> to export things as a part of a namespace instead of individually exporting them?</p>
  
  <p>I have this which is getting close:</p>
  
  <p><a href="https://i.stack.imgur.com/FILkj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FILkj.png" alt="enter image description here"></a></p>
  
  <p>So I tried changing them to imports and then putting them on a const like so:</p>
  
  <p><a href="https://i.stack.imgur.com/kJG36.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kJG36.png" alt="enter image description here"></a></p>
  
  <p>But as you can see, some of my declarations are interfaces, not classes, and in that case looks like I get the error message "only refers to a type, but is being used as a value here".</p>