/** * Props for the useOnClickOutside hook */ type UseOnClickOutsideProps = { /** * Callback when clicking outside targets */ onOutsidePress?: (e: globalThis.MouseEvent) => void; /** * Callback when closing (after outside press) */ onClose?: () => void; /** * Array of target elements to monitor */ targets: (HTMLElement | undefined)[]; }; /** * Custom hook for detecting clicks outside of specified target elements. * * Features: * - Detects clicks outside of multiple target elements * - Supports both mousedown and mouseup event handling * - Provides separate callbacks for outside press and close actions * - Handles SSR environments gracefully * - Automatically cleans up event listeners * - Uses composedPath for accurate event target detection * - Supports optional callbacks for flexible usage * * @param props - Configuration object containing targets and optional callbacks * @returns void */ export declare const useOnClickOutside: ({ onOutsidePress, targets, onClose, }: UseOnClickOutsideProps) => void; export {};