import PropTypes from 'prop-types'; import { FunctionComponent, ReactNode } from 'react'; /** * Generates the correct PropType when trying to ensure a specific Component * @param {Class} component the React component you expect the children to be * @returns {PropType} */ export default function componentPropType

(component: FunctionComponent

): PropTypes.Requireable>; }> | (NonNullable>; }> | null | undefined> | null | undefined)[] | null | undefined>>; export declare const childType: (child: ReactNode, name: string, parent: string) => void;