/** * Returns a stable callback reference that always invokes the latest version of the provided function. * Avoids stale closures without adding the function to dependency arrays. */ declare function useEventCallback(fn: (...args: Args) => Return): (...args: Args) => Return; export default useEventCallback;