export namespace object instead commonjs interop object (#5619)
### Description
needed for next.rs API: next.js checks if routes doesn't contain a
default export
### Testing Instructions
<!--
Give a quick description of steps to test your changes.
-->