import React from 'react'; export type ClickAwayEvent = 'click' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchend'; declare const useClickAway: (ref: React.RefObject, onClickAway: (ev: Event) => void, events?: ClickAwayEvent[]) => void; export default useClickAway;