It seems like there might be some confusion between TS import syntax `import = require()` and the Node.JS `require` function.
The TS import notation is specific to CommonJS modules in TypeScript, used along with `export =` in `.d.ts` files.
On the other hand, the Node.JS `require` function is part of the Node.JS global scope and its types can be accessed using `@types/node`. It cannot be used in `.d.ts` files due to restrictions on statements in ambient contexts.
Generally, `.d.ts` files can include import statements for type declarations from other files, typically relative module imports within the project. These imports only affect compile-time, as types are erased at run-time.