// @noImplicitReferences: true
// @module: node16,nodenext
// @outDir: out
// @filename: /node_modules/pkg/package.json
{
    "name": "pkg",
    "version": "0.0.1",
    "exports": {
        "import": "./import.js",
        "require": "./require.js"
    }
}
// @filename: /node_modules/pkg/import.d.ts
export {};
declare global {
    var foo: number;
}
// @filename: /node_modules/pkg/require.d.ts
export {};
declare global {
    var bar: number;
}
// @filename: /package.json
{
    "private": true,
    "type": "module"
}
// @filename: /index.ts
/// <reference types="pkg" />
foo; // foo should resolve while bar should not, since index.js is esm
bar;
export {};