export declare const on: (element: HTMLElement | Document | Window, event: string, handler: (args: any) => void, useCapture?: boolean) => void; export declare const off: (element: HTMLElement | Document | Window, event: string, handler: (args: any) => void, useCapture?: boolean) => void; export declare const stop: (e: Event) => void; export declare const getStyle: (element: HTMLElement, styleName: any) => string; export declare const isScroll: (el: HTMLElement, isVertical?: boolean | undefined) => boolean; export declare const getScrollContainer: (el: HTMLElement, isVertical?: boolean | undefined) => HTMLElement | undefined; export declare const hasClass: (el: Element, cls: string) => boolean; export declare function addClass(el: HTMLElement | Element, cls: string): void; export declare function removeClass(el: HTMLElement | Element, cls: string): void; export declare const composeEventHandlers: (theirsHandler?: ((event: E) => boolean | void) | undefined, oursHandler?: ((event: E) => void) | undefined, { checkForDefaultPrevented }?: { checkForDefaultPrevented?: boolean | undefined; }) => (event: E) => void; /** * 使容器滚动到目标元素位置 * @param container 容器 * @param selected 目标点 * @returns */ export declare function scrollIntoView(container: HTMLElement, selected: HTMLElement): void; export declare const getScrollBarWidth: () => number; /** * Determine if the testing element is visible on screen no matter if its on the viewport or not */ export declare const isVisible: (element: HTMLElement) => boolean; /** * @desc Determine if target element is focusable * @param element {HTMLElement} * @returns {Boolean} true if it is focusable */ export declare const isFocusable: (element: HTMLElement) => boolean; export declare const obtainAllFocusableElements: (element: HTMLElement) => HTMLElement[]; export declare const getClientXY: (event: MouseEvent | TouchEvent | Event) => { clientX: number; clientY: number; }; /** * 判断元素是否在容器中 * @param el 元素 * @param container 容器 * @returns boolean */ export declare const isInContainer: (el?: Element | undefined, container?: Window | Element | undefined) => boolean;