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