// @target: es2015
// @module: commonjs
// @Filename: exportSpecifierReferencingOuterDeclaration2_A.ts
declare namespace X { export interface bar { } }

// @Filename: exportSpecifierReferencingOuterDeclaration2_B.ts
export { X };
export declare function foo(): X.bar;