/**
 * Adds event listener to a given element.
 *
 * @param {HTMLElement} element Element to attach the listener to
 * @param {string} type Event type
 * @param {Function} listener Event listener
 */
export default function useEventListener(element: HTMLElement | Window, type: string, listener: () => void): void;
