import { RefObject } from 'react'; interface ExitListenerOptions { /** * A ref object pointing to the target element that the hook should * observe for click outside and escape key events. */ ref: RefObject; /** * An optional boolean to enable or disable the event listeners. * When set to true (default), the event listeners are active. */ open?: boolean; /** * An optional callback function that is called when a click * event occurs outside the target element. */ onClickOutside?: (event: MouseEvent) => void; /** * An optional callback function that is called * when the 'Escape' key is pressed. */ onEscape?: (event: KeyboardEvent) => void; } export declare const useExitListener: ({ ref, open, onClickOutside, onEscape }: ExitListenerOptions) => void; export {};