In version 4.1.3 types are pointing to an unexisting file:
"typings": "./dist/src/index.d.ts",
The correct path should be:
"typings": "./dist/index.d.ts",
This forces TS users to use @types/global-agent 3.0.0 which is probably not in sync with v4 code.