Here's the issue:

Though in my another project sample I am able to import .wasm file and get those type declarations:

It is generated by asc compiler from AssemblyScript with --tsdFile argument:
--tsdFile, -d Specifies the TypeScript definition output file (.d.ts).
Though honestly this option works a little weird right now, and types are wrongly generated a bit, but it's in progress of being fixed here: AssemblyScript/assemblyscript#1704 (so what you can see on the screenshot will be working as intended, exactly as seen on the screenshot)
Here's the issue:
Though in my another project sample I am able to import
.wasmfile and get those type declarations:It is generated by
asccompiler from AssemblyScript with--tsdFileargument:Though honestly this option works a little weird right now, and types are wrongly generated a bit, but it's in progress of being fixed here: AssemblyScript/assemblyscript#1704 (so what you can see on the screenshot will be working as intended, exactly as seen on the screenshot)