/** * The hook returns a stable function (an empty list of dependencies), * but this function always calls the actual function associated with the last render. * The returned function should be used as an event handler or inside a useEffect. */ export declare function useEventHandler(handler?: T): T;