Is there a way to retrieve event form from backend?

Hi, I’m developing a custom Event registration process but need to retrieve the formInputs from a backend function or events.js onRsvpCreated.
Unfortunately it would appear that Wix doesn’t allow the import of wixEvents from ‘wix-events’. In the editor. WixEvents is underlined with the red wavy line and hovering over it shows
" Cannot find module ‘wix-events’ or its corresponding type declarations."
Ignoring the error and running the code gives the expected error Error loading web module backend/rsvp.jsw: Cannot find module ‘wix-events’
Is getForm only usable in frontend code?