export declare function useLeaveDetection(onLeave: (event: MouseEvent) => void, target?: HTMLElement | null): void;