/** * Stable callback that always invokes the latest handler (avoids stale closures). * Supports multi-argument handlers (e.g. onRequest(params, opts)). */ export declare function useEventCallback(handler: (...args: Args) => R): (...args: Args) => R;