import { NodeType } from './constants.js'; declare function descriptionOfTree(tree: ElementTreeNode, truncateTextLength?: number, filterNonTextContent?: boolean): string; declare function treeToList(tree: ElementTreeNode): T[]; declare function traverseTree(tree: ElementTreeNode, onNode: (node: T) => ReturnNodeType): ElementTreeNode; interface WebElementNode { node: WebElementInfo | null; children: WebElementNode[]; } declare function extractTextWithPosition(initNode: globalThis.Node, debugMode?: boolean): WebElementInfo[]; declare function extractTreeNodeAsString(initNode: globalThis.Node, debugMode?: boolean): string; declare function extractTreeNode(initNode: globalThis.Node, debugMode?: boolean): WebElementNode; declare function setNodeHashCacheListOnWindow(): void; declare function getNodeFromCacheList(id: string): any; declare function getXpathsById(id: string): string[] | null; declare function getNodeInfoByXpath(xpath: string): Node | null; declare function getElementInfoByXpath(xpath: string): ElementInfo | null; declare function generateElementByPosition(position: { x: number; y: number; }): { id: string; attributes: { nodeType: NodeType; }; rect: { left: number; top: number; width: number; height: number; }; content: string; center: number[]; }; interface ElementInfo { id: string; indexId: number; nodeHashId: string; locator: string; xpaths?: string[]; attributes: { nodeType: NodeType; [key: string]: string; }; nodeType: NodeType; content: string; rect: { left: number; top: number; width: number; height: number; }; center: [number, number]; } interface ElementNode { node: ElementInfo | null; children: ElementNode[]; } interface Point { left: number; top: number; } interface Size { width: number; height: number; dpr?: number; } type Rect = Point & Size & { zoom?: number; }; declare abstract class BaseElement { abstract id: string; abstract indexId?: number; abstract attributes: { nodeType: NodeType; [key: string]: string; }; abstract content: string; abstract rect: Rect; abstract center: [number, number]; abstract locator?: string; } interface ElementTreeNode { node: ElementType | null; children: ElementTreeNode[]; } interface WebElementInfo extends ElementInfo { zoom: number; } export { BaseElement as B, type ElementInfo as E, type Point as P, type Rect as R, type Size as S, type WebElementInfo as W, type ElementNode as a, treeToList as b, extractTreeNode as c, descriptionOfTree as d, extractTextWithPosition as e, extractTreeNodeAsString as f, getNodeFromCacheList as g, getXpathsById as h, getNodeInfoByXpath as i, getElementInfoByXpath as j, generateElementByPosition as k, type ElementTreeNode as l, setNodeHashCacheListOnWindow as s, traverseTree as t };