import { RefObject } from 'react'; import { UseOutsideClickProps } from './type'; /** * 지정된 element 외부의 click event를 감지하는 hook * onClickOutside 함수를 통해 마우스 클릭 이벤트를 처리할 수 있습니다. * * @param {Object} props - hook props * @param {() => void} props.onClickOutside - 외부 interaction 발생 시 실행될 콜백 함수 * @param {EventType[]} [props.events] - 감지할 이벤트 (default :['mousedown', 'touchstart']) * * @returns {React.RefObject} element에 연결할 ref 객체 */ declare const useOutsideClick: ({ onClickOutside, events, }: UseOutsideClickProps) => RefObject; export default useOutsideClick;