type AnyFunction = (...args: any[]) => any; type Options = { /** * Whether to use flushSync or not */ sync?: boolean | undefined; }; /** * Returns a memoized callback that will flushSync the callback if sync is true */ export declare function useEvent(callback: T | undefined, opts?: Options): T; export {};