import { useEventListener as e } from "./useEventListener.js";
import { ref as t } from "vue";
function n(n, r = {}) {
	let { delayEnter: i = 0, delayLeave: a = 0 } = r, o = t(!1), s, c = (e) => {
		let t = e ? i : a;
		s &&= (clearTimeout(s), void 0), t ? s = setTimeout(() => o.value = e, t) : o.value = e;
	};
	return window ? (e(n, "mouseenter", () => c(!0)), e(n, "mouseleave", () => c(!1)), o) : o;
}
export { n as useHover };

//# sourceMappingURL=useHover.js.map