Api.export with another name (export as)

I have two objects in my package, “A” and “B”. A is designed for the client, B is designed for the server. Is there a way to export them both as A? I want to export A to the client, and B to the server, but I want them both to appear as A.

The reason I’m doing this is that one is a browserified version of an NPM, and one is a non-browserified version.

Nevermind, I realised I can just define the same object as “A” on both client and server and then api.export(‘A’) will catch both.