title: How to export and import at the same time in typescript
body: <p>I want to import the model's interface and at the same time export the model interface from that file.</p>
  
  <p>I wrote the following code to import the model's interface and use it in that file and export that interface externally.</p>
  
  <pre><code>// api/service/post.interface.ts
  export import { Post } from '../../model/interface/post.interface.ts; 
  // -&gt; An import declaration cannot have modifiers.
  
  type PostPayload = Partial&lt;Post&gt;;
  
  // api/service/post_create.ts
  import { Post } from './post.interface'; 
  // -&gt; this path has no exported member 'Post'
  
  const a = (title: Post['title']) =&gt; {
    ...
  }
  </code></pre>
  
  <p>What did I make a mistake?</p>