import * as React from 'react'; /** * Gets all children by specified predicate * * @since v1.0.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 matching children * @example * // Finds all children that have an 'active' prop set to true * getChildren(children, child => child.props.active); */ export declare const getChildren: (children: T, predicate: (child: TC) => boolean) => TC[]; /** * Gets all children by specified predicate (deep search) * * @since v1.0.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 matching children * @example * // Finds the first occurrence of a child that has a prop of 'active' set to true * getChildrenDeep(children, child => child.props.active); */ export declare const getChildrenDeep: (children: T, predicate: (child: TC) => boolean) => TC[];