import { RefObject } from 'react'; /** * Calls `onOutside` when a pointer/touch press lands outside every referenced * element, while `active` is true. * * Accepts multiple refs (e.g. a trigger plus its popover) so clicks on any of * them count as inside. Listens in the capture phase on `pointerdown` and * `touchstart` to fire before click handlers. Shadow-DOM safe: it compares * against the refs' nodes, not document containment. * @param {ReadonlyArray>} refs - Elements treated as inside. * @param {() => void} onOutside - Called on an outside press. * @param {boolean} [active] - Whether the listener is attached (default true). * @returns {void} Nothing. */ export declare const useClickOutside: (refs: ReadonlyArray>, onOutside: () => void, active?: boolean) => void; //# sourceMappingURL=useClickOutside.d.ts.map