import type { ReactElement, ReactNode } from "react";
import React from "react";
/**
 * Returns the first React Child that receives `true` from isCorrectComponent
 * @param children React Children
 * @param isCorrectComponent a function that accepts a ReactElement and returns a boolean.
 * @returns The first child component that returns true on isCorrectComponent
 */
export declare function useChildComponent(children: ReactNode | undefined, isCorrectComponent: (toCheck: ReactElement) => boolean): ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
