Using GLTFExporter with Typescript serverside

Is there a way to use the GLTFExporter with a typescript project without going through the sample exporter and completely reorganizing it for ts? From what I see, I would need to declare the class (to match the GLTFExporter.d.ts), swap out all the browser compatible code (window.FileReader) to use node modules, and define the different objects used during parsing to have all of their attributes.

I haven’t tried using GLTFExporter with typescript, but as for the Node.js questions here is something that has worked for me in the past. Bit of a hack, for sure: