import { f as Computed } from "../children-s3nFjpLA.mjs"; //#region src/utilities/event-listener.d.ts /** * Attaches a type-safe event listener to a target, with automatic cleanup. * * When called inside an `effect` or `effectScope` the listener is removed * when the scope is disposed. When the target is a reactive getter the * listener is re-registered whenever the target changes. * * @example * ```ts * import { on } from "elements-kit/utilities/event-listener"; * * // Static target — listener removed when the enclosing scope ends * on(window, "resize", () => console.log(window.innerWidth)); * * // Reactive target — listener follows the current element * on(activeElement, "focus", () => console.log("focused")); * ``` */ declare function on(target: HTMLElement | Computed, type: K, handler: (e: HTMLElementEventMap[K]) => void, options?: AddEventListenerOptions): () => void; declare function on(target: Document | Computed, type: K, handler: (e: DocumentEventMap[K]) => void, options?: AddEventListenerOptions): () => void; declare function on(target: Window | Computed, type: K, handler: (e: WindowEventMap[K]) => void, options?: AddEventListenerOptions): () => void; declare function on(target: EventTarget | Computed, type: string, handler: EventListener, options?: AddEventListenerOptions): () => void; //#endregion export { on };