import * as React from "react"; export default function findChild(type: string, children: React.ReactNode): React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)> | React.ReactPortal | undefined; export declare function findChildByType(component: React.ElementType, children: React.ReactNode): string | number | React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)> | React.ReactFragment | React.ReactPortal | undefined;