This implementation avoids the TypeScript error shared below when building a solution that has a dependency on groq-sdk with the tsconfig isolatedModules = true which is the recommended approach. I think what you have is using the "legacy" implementation of exporting types from namespaces where the types themselves were imported from other modules.
./node_modules/.pnpm/groq-sdk@0.3.3/node_modules/groq-sdk/src/index.ts:192:3 Type error: Cannot use 'export import' on a type or type-only namespace when 'isolatedModules' is enabled.
This implementation avoids the TypeScript error shared below when building a solution that has a dependency on groq-sdk with the tsconfig isolatedModules = true which is the recommended approach. I think what you have is using the "legacy" implementation of exporting types from namespaces where the types themselves were imported from other modules.
Look at this StackOverflow post: https://stackoverflow.com/questions/30712638/typescript-export-imported-interface
Error I was getting:
./node_modules/.pnpm/groq-sdk@0.3.3/node_modules/groq-sdk/src/index.ts:192:3 Type error: Cannot use 'export import' on a type or type-only namespace when 'isolatedModules' is enabled.
190 | export import fileFromPath = Uploads.fileFromPath; 191 |