import { type RefObject } from "react";
import { type ReferenceType } from "@floating-ui/react";
/**
 * Data attribute to identify elements that should not trigger outside click closure.
 *
 * @internal
 */
export declare const FLOATING_ELEMENT_DATA_ATTR = "data-gd-floating-element";
/**
 * @internal
 */
export interface IUseCloseOnOutsideClickOptions {
    floatingRef: RefObject<HTMLElement | null>;
    anchorRef: RefObject<ReferenceType | null>;
    ignoreClicksOn?: Array<string | HTMLElement>;
    shouldCloseOnClick?: (event: Event) => boolean;
}
/**
 * Hook to trigger a callback when clicking outside of a target element.
 *
 * @internal
 */
export declare function useCloseOnOutsideClick(isOpen: boolean, onClose: () => void, options: IUseCloseOnOutsideClickOptions): void;
//# sourceMappingURL=useCloseOnOutsideClick.d.ts.map