When merging declarations of the same name, all declarations must consistently be ambient (i.e. use `declare`) or all must be non-ambient. You cannot mix the two.
TS2395
typescript When merging declarations of the same name, all declarations must consistently be ambient (i.e. use `declare`) or all must be non-ambient. You cannot mix the two.