Initializers represent functional code and are invalid in declarations:
declare module "some-npm-module" {
export let a = 1;
// ^^^ Error
}
Fix: Replace with type definition.
Replace the initializer with an appropriate type definition:
declare module "some-npm-module" {
export let a: number;
}