declare const isLeftMouse: (e: any) => boolean; declare const isRightMouse: (e: any) => boolean; type EventListenOptions = AddEventListenerOptions & { target?: EventTarget; }; type WindowEventKeys = keyof WindowEventMap; type ListenFunc = (this: EventTarget, ev: WindowEventMap[K]) => any; declare function listen(...args: [K, ListenFunc]): () => void; declare function listen(...args: [K, EventListenOptions, ListenFunc]): () => void; declare function stopPropagation(callback?: (e?: any) => any): (e: any) => void; declare function preventDefault(callback?: (e?: any) => any): (e: any) => void; type Option = { enable: boolean; query?: string; max?: number; }; declare function limitConsoleMaxError({ enable, query, max }: Option, errorCount?: number): void; export { type EventListenOptions, type ListenFunc, type WindowEventKeys, isLeftMouse, isRightMouse, limitConsoleMaxError, listen, preventDefault, stopPropagation };