'How to export an imported interface from ambient module?

SomeClass.ts:

export interface SomeClass {
  print(): void;
}

external-types.d.ts

import { SomeClass } from "./SomeClass";
declare module "printer" {
  // How to export SomeClass from this module?
  // I have several other interfaces spread across
  // files that I want to export from here.
}

The solution I am not looking for is, moving the interface into module declaration. Because I have lot of interfaces across files and I simply want to import and re-export them from the module.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source