| getCurrentApp | Gets the current GTK application instance. |
| start | Starts the GTK application with the given application ID. Sets up a keep-alive timer to prevent Node.js from exiting. This function is idempotent - calling it multiple times returns the existing app. |
| stop | Stops the GTK application and cleans up the keep-alive timer. Emits the "stop" event before shutting down to allow cleanup. This function is idempotent - calling it when not started does nothing. |
| wrapPtr | Wraps a native pointer in a class instance without calling the constructor. Used when receiving pointers from FFI calls that need to be wrapped as TypeScript objects. |