Unlikely you will get these in definitelyTyped. It’s not fully complete but you informs on the most relevant references that you’d typically leverage. I’ve annotated the methods/props from which I have knowledge of but for the most part it’s difficult without seeing the unobfuscated code.
In addition, I have typed with JSDocs annotation section schema, you can find that in the various projects I Open Source and maintain (search my name of github or see the vscode-liquid extension repo).
Lastly, you’ll need to create a global.d.ts file and apply globalThis etc.
Hope it helps.
type Primitive = | null | undefined | string | number | boolean | symbol | bigint;
type LiteralUnion