import { ComponentRef } from '@angular/core'; /** * Dom or Native Element 工具类 * * @author fbchen * @version 1.0 2017-05-19 */ export declare class DomUtils { /** * 判断是否root结点是否包含n结点 * * @param root 根结点Element * @param n 待判断的结点 */ static contains(root: HTMLElement, n: Node): boolean; /** * Gets the root HTMLElement for an instantiated component. * * @param componentRef 组件引用对象 */ static getComponentRootNode(componentRef: ComponentRef): HTMLElement; /** * 检测两个结点是否直接的父子关系 * * @param parent 父结点 * @param child 子结点 */ static isParentChild(parent: HTMLElement, child: HTMLElement): boolean; }