/** * Attaches an event listener to a given element (default: window). * * @template K - Event type * @param event - Event name (e.g. "click", "keydown") * @param handler - Callback to handle the event * @param element - Target element (default: window) * * @example * useEventListener("resize", () => console.log("Resized")); */ export declare const useEventListener: (event: K, handler: (e: WindowEventMap[K]) => void, element?: Window | Document | HTMLElement) => void; //# sourceMappingURL=useEventListener.d.ts.map