You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
647 B
16 lines
647 B
import type React from 'react';
|
|
import type { ReactTestInstance } from 'react-test-renderer';
|
|
/**
|
|
* Checks if the given element is a host element.
|
|
* @param element The element to check.
|
|
*/
|
|
export declare function isHostElement(element?: ReactTestInstance | null): boolean;
|
|
/**
|
|
* Returns first host ancestor for given element or first ancestor of one of
|
|
* passed component types.
|
|
*
|
|
* @param element The element start traversing from.
|
|
* @param componentTypes Additional component types to match.
|
|
*/
|
|
export declare function getParentElement(element: ReactTestInstance | null, componentTypes?: React.ElementType[]): ReactTestInstance | null;
|