"use client";
import { f as e } from "./useRenderElement-CmuWsiNa.js";
import { t } from "./useOnMount-Dirf6DNj.js";
//#region ../../node_modules/.bun/@base-ui+utils@0.2.9+f7941a290aa3d619/node_modules/@base-ui/utils/esm/useTimeout.js
var n = 0, r = class e {
	static create() {
		return new e();
	}
	currentId = n;
	start(e, t) {
		this.clear(), this.currentId = setTimeout(() => {
			this.currentId = n, t();
		}, e);
	}
	isStarted() {
		return this.currentId !== n;
	}
	clear = () => {
		this.currentId !== n && (clearTimeout(this.currentId), this.currentId = n);
	};
	disposeEffect = () => this.clear;
};
function i() {
	let n = e(r.create).current;
	return t(n.disposeEffect), n;
}
//#endregion
export { i as n, r as t };
