export declare function listenWindow(event: K, handler: (e: WindowEventMap[K]) => void): () => void;