## Description ``` // src/foo.d.ts declare module 'foo' { export { X: string }; } // src/index.ts import type { X } from 'foo'; ``` Results a built file with `reference` to `src/foo.d.ts` - maybe this should be copied over to the dist? ## Steps to reproduce Refer to: - https://github.com/MetaMask/snaps/actions/runs/11377787197/job/31652511752?pr=2817#step:5:9 - https://github.com/MetaMask/snaps/pull/2817 ## Related - https://github.com/microsoft/TypeScript/issues/34749