import { default as React } from 'react'; /** * Warn about invalid child in non-production environments only. * Gated to avoid leaking warnings in production builds. * @param child - Invalid child element * @param validChildren - List of supported child component names * @param componentName - Name of the parent component emitting the warning */ export default function warnInvalidChild(child: React.ReactElement, validChildren: string[], componentName: string): void;