=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_1.ts === /// import A = require('M'); >A : typeof A var c = new A(); >c : A >new A() : A >A : typeof A === tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts === declare module 'M' { module C { >C : typeof C export var f: number; >f : number } class C { >C : C foo(): void; >foo : () => void } import X = C; >X : typeof C >C : C export = X; >X : C }