//// [internalAliasFunctionInsideLocalModuleWithoutExport.ts]
export module a {
    export function foo(x: number) {
        return x;
    }
}

export module c {
    import b = a.foo;
    var bVal = b(10);
    export var bVal2 = b;
}


//// [internalAliasFunctionInsideLocalModuleWithoutExport.js]
var a;
(function (a) {
    function foo(x) {
        return x;
    }
    a.foo = foo;
})(a = exports.a || (exports.a = {}));
var c;
(function (c) {
    var b = a.foo;
    var bVal = b(10);
    c.bVal2 = b;
})(c = exports.c || (exports.c = {}));


//// [internalAliasFunctionInsideLocalModuleWithoutExport.d.ts]
export declare module a {
    function foo(x: number): number;
}
export declare module c {
    import b = a.foo;
    var bVal2: typeof b;
}
