Type a CJS module with declare module, then import it in ESM style with correct default/named interop.