import { RefObject } from 'react'; type Ref = RefObject; /** * This hook allows you to fire a callback when a user clicks outside of a certain component. */ declare const useOnClickOutside: (ref: Ref | Array | null, callback: () => void) => void; export default useOnClickOutside;