=== tests/cases/compiler/three.d.ts ===
export namespace THREE {
>THREE : typeof THREE

  export class Vector2 {}
>Vector2 : Vector2
}

=== tests/cases/compiler/global.d.ts ===
import * as _three from './three';
>_three : typeof _three

export as namespace THREE;
>THREE : typeof import("tests/cases/compiler/global")

declare global {
>global : typeof global

  export const THREE: typeof _three;
>THREE : typeof import("tests/cases/compiler/global")
>_three : typeof _three
}

=== tests/cases/compiler/test.ts ===
const m = THREE
>m : typeof import("tests/cases/compiler/global")
>THREE : typeof import("tests/cases/compiler/global")

