declare class Element { el: HTMLElement; _data: Record; constructor(tag: string | HTMLElement, className?: string); data(key: string, value: any): any; on(eventNames: string, handler: Function): this; offset(value: number): this | { top: number; left: number; height: number; width: number; }; scroll(v: { top: number; left: number; }): { left: number; top: number; }; box(): DOMRect; parent(): Element; children(...eles: HTMLElement[]): this | NodeListOf; removeChild(el: HTMLElement): void; child(arg: string | HTMLElement): this; contains(ele: HTMLElement): boolean; className(v: string): string | this; addClass(name: string): this; hasClass(name: string): boolean; removeClass(name: string): this; toggle(cls?: string): boolean; toggleClass(name: string): boolean; active(flag?: boolean, cls?: string): this; checked(flag?: boolean): this; disabled(flag?: boolean): this; attr(key: string, value: string): string | this; removeAttr(key: string): this; html(content: string): string | this; val(v: string): string | this; focus(): void; cssRemoveKeys(...keys: string[]): this; css(name: string, value: string): any; computedStyle(): CSSStyleDeclaration; show(): this; hide(): this; } declare const h: (tag: string, className?: string) => Element; export { Element, h };