export declare function findAncestorNode(targetNode: Node | null, predicate: (node: Node) => boolean, rootNode?: Node): Node | undefined; /** * Check if a targetNode has an ancestor node that satisfies a predicate function. */ export declare function containsAncestorNode(targetNode: Node | null, predicate: (node: Node) => boolean, rootNode?: Node): boolean; /** * Track scroll position of `element` and if height or width of `element` * changes, scroll to tracked position. */ export declare const addScrollAnchor: typeof addScrollAnchor__loop; declare function addScrollAnchor__loop(container: HTMLElement, anchorNode?: Element | undefined): () => void; /** * Is the top of the element visible in the element's scroll parent? * @param element */ export declare function isElementInViewport(element: HTMLElement): boolean; export declare function scrollIntoView(element: HTMLElement): void; export declare function findScrollParent(element: HTMLElement): HTMLElement; /** * Scroll element into view, if needed. Only scrolls offsetParent. * @param element Element to scroll into view */ export declare function scrollIntoViewIfNeeded(element: HTMLElement): void; export declare function copyContent(node: HTMLElement): void; export declare function writeTextToClipboard(str: string): Promise; /** * Strip HTML characters from a string. */ export declare function stripHTML(str: string): string; export {}; //# sourceMappingURL=DomUtils.d.ts.map