type AnyFunction = (...args: any[]) => any;
/**
 * Directly from this gist: https://gist.github.com/diegohaz/695097a06f038a707c3a1b11e4e40195
 * Until React releases a native `useEvent` hook.
 */
export declare function useEvent<T extends AnyFunction>(callback?: T): T;
export {};
