The TypeScript definitions at v1/index.d.ts are not being used and cannot be used as-is (at least in a normal way). They are not exported in package.json.
They're likely out of date and not going to be aligned with the source code as things change.
I suggest removing them and auto-generating them at a later point in time.