Export the actionSet(s) with UXP

I’m trying to find documentation to help me in this, but I can’t.

I want to be able to let the user to export one or more actions set using a UI.
My goal is to let the user do an .ATN file, like when they go to actions panel menu, and select “Save Actions” and they can do an easy back-up.

What I saw is:
PhotoshopAction.recordAction, let me to record an action…

And the method listed in the Class are:
delete | duplicate | play

If you can point in a good direction I will appreciate it!
Thanks in advance for reading me and for any possible approach!

PS: I saw xtools.