// @target: es2022
// @noImplicitReferences: true
// @module: node16,node18,node20,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: /index.ts
/// <reference types="pkg" resolution-mode="import" />
/// <reference types="pkg" resolution-mode="require" />
// Both `foo` and `bar` should resolve, as _both_ entrypoints are included by the two
// references above.
foo;
bar;
export {};