It seems typescript compiler can generate .d.ts files and the source maps (.d.ts.map files) from JavaScript sources as described here. Declaration maps are generated with declarationMap option in tsconfig.json.
However, what if I create .d.ts files manually (without using tsc)? So I have JavaScript source files and .d.ts files that I created manually. Is there any way to generate declaration maps from these? How would I go about this? Can declaration maps be created manually as well?