There is a npm module one-two-three for example.
It contains TS files index.ts (the main) and functions.ts.
functions.ts:
///
import mo = require("one-two-three");
No reaction.
It should work.
A file .d.ts in TypeScript is like a file .h in C. It's normal to use it when a dependency is imported from another project or sub-project.
If the file your-project/node_modules/one-two-three/index.d.ts isn't written correctly, I suggest to copy it to your-project/one-two-three.d.ts, and then fix the copy. Using the module name as file name makes the ///
import mo = require("one-two-three");