/// export interface ViewportOffsetResult { left: number; top: number; right: number; bottom: number; rightIncludeBody: number; bottomIncludeBody: number; } export declare function hasClass(el: Element, cls: string): boolean; export declare function addClass(el: Element, cls: string): void; export declare function removeClass(el: Element, cls: string): void; export declare function getViewportOffset(element: Element): ViewportOffsetResult; export declare function hackCss(attr: string, value: string): any; export declare const domEvent: { on: typeof on; off: typeof off; once: typeof once; }; export declare function on(element: Element | HTMLElement | Document | Window, event: string, handler: EventListenerOrEventListenerObject): void; declare function off(element: Element | HTMLElement | Document | Window, event: string, handler: Fn): void; declare function once(el: HTMLElement, event: string, fn: EventListener): void; export declare enum fileType { BLOB = "blob", FILE = "file" } export interface dom2imgFileParams { dom: HTMLElement; fileName?: string; type: fileType | 'base64'; scale?: number; } export declare function dom2imgFile({ dom, fileName, type, scale, }: dom2imgFileParams): Promise; export declare function setRem(baseSize?: number): void; export declare function getRem(): number; interface coordinateInfo { x: number; y: number; } export declare function checkInDOM(target: HTMLElement, dom: HTMLElement | coordinateInfo): boolean | undefined; type domCallbackType = (ele: Element) => void; export declare function domForeach(doms: HTMLCollectionOf, callback: domCallbackType): void; export {};