Welcome to the Atlassian developer community @DanielVelkov,
Possible, but only as a distinct feature, not associated with existing export capabilities. See this recent discussion:
It isn’t so much that there is an explicit set of “known formats”. Rather that you will have some limitations based on the Forge environment.
In the currently GA runtime, you are limited by Atlassian’s proprietary Node-like implementation. While our documentation has a pretty exhaustive list of limitations, we are aware that it’s often hard to know if those limitations apply to a specific library. You might have to probe the dependency tree pretty hard to know if and why a particular library doesn’t work.
Fortunately, there is a new Forge native Node.js runtime that helps solve these problems:
The new native Node.js runtime enables Forge functions to run within a standard Node.js environment. This will allow you to import any built-in, local, or third-party Node modules into your app.
You might try using your libraries in that runtime instead.
That said, you still don’t have full access to the infrastructure, which some libraries might assume. For example, you won’t have a way to just “drop a file” on disk and pick it up outside the Forge App. So you will still want to be aware of the new runtime’s limitations.