Suppose I have the following ambient type declaration:
// index.d.ts
declare namespace admin {
namespace auth {
function doSomething();
}
}
I can consume this as follows:
// caller.ts
import * as admin from './index';
admin.auth.doSomething();
Is there a way to split the d.ts file into two with no impact on the caller? Ideally I'd like to move the nested namespace auth to its own file auth.d.ts.