export = Modern;
export as namespace Modern;

declare namespace Modern {
  class ModernClass {}
}

declare global {
  namespace ModernGlobals {
    class ModernSubclass extends Modern.ModernClass {}
  }
}
