import { RefObject } from 'react';
type AnyEvent = MouseEvent | TouchEvent;
/**
 * Run a handler when a mouse or touch interaction happens outside the target ref.
 * The optional `noRef` acts as an exclusion zone that should not trigger the outside handler.
 */
declare function useOnClickOutside<T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: AnyEvent) => void, noRef?: RefObject<T>): void;
export default useOnClickOutside;
//# sourceMappingURL=index.d.ts.map