import React from 'react'; export interface UseClickOutsideProps { /** * This will execute when user click outside of `ref` */ callback?: (e: MouseEvent) => void; disabled?: boolean; /** * Indicates which button was pressed on the mouse to execute the `callback` * * 0: Main button pressed, usually the left button or the un-initialized state * 1: Auxiliary button pressed, usually the wheel button or the middle button (if present) * 2: Secondary button pressed, usually the right button * 3: Fourth button, typically the Browser Back button * 4: Fifth button, typically the Browser Forward button * * @default 0 */ closeButton?: number; /** * @default "mouseup" */ onEvent?: 'mouseup' | 'mousedown'; } declare const useClickOutside: (props: UseClickOutsideProps) => React.Dispatch>; export type UseClickOutsideReturn = ReturnType; export { useClickOutside }; //# sourceMappingURL=index.d.ts.map