export declare function useOutsideClick(ref: React.RefObject, onOutsideClick?: () => void): void;