export default function useWindowEvent(type: K, listener: (this: Window, ev: WindowEventMap[K]) => void): void;