/** Query element with flexible conditions */ export declare function query(qry: string, ctx: Element | Document): HTMLElement | HTMLCollectionOf | NodeListOf; /** 创建元素 */ export declare function element(name: K): HTMLElementTagNameMap[K]; export declare function svgElement(name: K): SVGElement; export declare function text(data: string): Text; export declare function space(): Text; export declare function empty(): Text; export declare function attr(node: Element, attribute: string, value?: string): void; export declare function setAttr(node: Element & ElementCSSInlineStyle, attributes: { [x: string]: string; }): void; export declare function setCustomElementData(node: Element & ElementCSSInlineStyle, prop: string, value: string): void; export declare function xlinkAttr(node: Element & ElementCSSInlineStyle, prop: string, value: string): void; export declare function append(target: Node, node: Node): void; export declare function insert(target: Node, node: Node, anchor?: Node): void; export declare function children(element: Element): ChildNode[]; export declare function detach(node: Node): void; /** 判断元素是否可见 */ export declare function isElementVisible(elem: HTMLElement): boolean; export interface ElemPosition { x: number; y: number; } export declare const getPostionByHTMLElement: (e: HTMLElement, center?: boolean) => ElemPosition;