Exposing Hover and Button Click to Outside JS scripts

I have a button on an artboard with other elements.
using @rive-app/webgl2 as my renderer…. (Web JS)

I have come to a point where I would like to do 2 things….
1. change the cursor to a pointer for my button
2. on button click run my script which is outside rive, my own js script…

Are these things possible? I am just getting started but I would appreciate any suggestions on even where to start with the api for my implementation.

Thanks!