import type { ComponentType } from 'react'; import type { Node, Predicate, FunctionKeys, DeepPartialArguments, PropsFor, UnknowablePropsFor, DebugOptions, TriggerKeypathParams, TriggerKeypathReturn, KeyPathFunction, ExtractKeypath } from './types'; import { Tag } from './types'; type Root = import('./root').Root; interface Tree { tag: Tag; type: string | ComponentType | null; props: Props; instance?: any; } export declare class Element implements Node { private readonly tree; private readonly allChildren; readonly root: Root; get props(): Props; get type(): string | ComponentType | null; get isDOM(): boolean; get instance(): any; get children(): Element[]; private get elementDescendants(); private get elementChildren(); get descendants(): Element[]; get domNodes(): HTMLElement[]; get domNode(): HTMLElement | null; private descendantsCache; private elementChildrenCache; constructor(tree: Tree, allChildren: (Element | string)[], root: Root); data(key: string): string | undefined; prop(key: K): Props[K]; text(): string; html(): string; is | string>(type: Type): this is Element>; find | string>(type: Type, props?: Partial>): Element> | null; findAll | string>(type: Type, props?: Partial>): Element>[]; findWhere | string | unknown = unknown>(predicate: Predicate): Element> | null; findAllWhere | string | unknown = unknown>(predicate: Predicate): Element>[]; trigger>(prop: K, ...args: DeepPartialArguments): NonNullable extends (...args: any[]) => any ? ReturnType> : never; triggerKeypath>(...params: TriggerKeypathParams): TriggerKeypathReturn; debug(options?: DebugOptions): any; toString(): any; } export {}; //# sourceMappingURL=element.d.ts.map