/** * Hook that conditionally adds/removes event listeners based on a dependency * * @param element - The element to attach the event listener to * @param dependency - Boolean that determines if the listener should be active * @param type - Event type to listen for * @param listener - Event listener function * @param options - Optional event listener options */ declare function useEventOnToggle(element: HTMLElement | Document | null, dependency: boolean, type: keyof HTMLElementEventMap, listener?: (this: HTMLInputElement, ev: Event) => any, options?: boolean | AddEventListenerOptions): void; export { useEventOnToggle };