import * as React from 'react'; /** * Gets all children by specified predicate or that have a descendant node in their lineage which matches the predicate * * @since v2.6.0 * @template T * @template TC - Type of child * @param {T} children - JSX children * @param {(child: TC) => boolean} predicate - The predicate to determine if the given child is a match * @returns {TC[]} - All children that match the predicate or have a descendant which matches the predicate */ export declare const getChildrenWithDescendant: (children: T, predicate: (child: TC) => boolean) => TC[];