title: Proper explanation for NodeJS/Typescript Export / Import?
body: <p>Could someone please explain exactly how exports and imports work in NodeJS using Typescript? </p>
  
  <p>My setup is: </p>
  
  <ul>
  <li>NodeJS</li>
  <li>Everything in Typescript</li>
  <li>TSLint</li>
  <li>Typings</li>
  </ul>
  
  <p>I am messing about with exports/imports instead of doing some proper coding, its driving me nuts, and cannot find any proper explanation of how it works. </p>
  
  <p><strong>Import</strong></p>
  
  <p>Can you please explain following:</p>
  
  <pre><code>var module = require ("module");
  
  import module = require("module");
  
  import module from "module";
  
  import {something} from "module";
  
  import * as module from "module";
  </code></pre>
  
  <p><strong>Export</strong></p>
  
  <p>Can you please explain following</p>
  
  <pre><code>export = something;
  
  export default something;
  
  export interface|class something;
  </code></pre>
  
  <p><strong>Questions</strong></p>
  
  <ul>
  <li>How do properly export/import a class without initiating it</li>
  <li>How do properly export/import a class with it being initiated (construct did run)</li>
  <li>How do I properly export/import a class and interface</li>
  <li>How do I properly export/import class and multiple interfaces</li>
  <li>When to use modules declarations, what are they good for and why is tslint throwing errors at me if I try to use them.</li>
  </ul>
  
  <p>I cannot seem to find proper way of doing exports vs. imports so my IDE is not covered in red and throwing hundreds of errors at me.</p>
  
  <p><strong>General Questions</strong></p>
  
  <ul>
  <li>Is there even a way to not get errors using nodejs/typescript/tslint?</li>
  <li>TSLint is screaming at me for almost anything I type... it is <strong>extremely frustrating</strong> since there is 0 explanation to most of the errors. Is it even worth using it?</li>
  </ul>
  
  <p>List of questions goes on and on, but im sure once some of the above is answered, I can pick up on the rest.</p>
  
  <p>Thank you and sorry for such a general question, but my frustration level just reached the top...</p>