How to mock std.Io for WASM and non-WASM targets support

I need to use CSPRNG in my project but Zig doesnt provide Io in wasm target, so i will create js binding. but how to keep same api for wasm and non-wasm. can i mock std.Io ? link to file that uses std.Io. Zig 0.16.0

make an Io that calls the js bindings, then you can just switch the implementation depending on the platform.

You dont have to implement the whole of Io, just what you need, you can even not support concurrency, and just run async tasks synchronously.

but i need to pass io to argon kdf