I'm looking for a way to write my TypeScript classes in a way that I could provide only what I want to provide to the browser (global scope), basically something like this:
myModule.Api
Where Api would contain some public functions that could be executed from the browser, but relaying on other functions that would be written is other classes within the same module or sub-modules.
I need that these classes could use each other, but wouldn't be usable from the browser global scope, only through the Api.
What's the way to go with that? I couldn't figure out how to reuse classes from other classes without exposing them to the browser directly using export keyword.