import { ComponentType, ReactElement, ReactNode } from 'react'; /** * --- * category: utilities/react * --- * Check if a React component instance (React element) matches one of the * specified types. * * @module matchComponentTypes * @param {ReactElement|any} componentInstance * @param {Array} types an array of React components * @returns {Boolean} true if the component matches at least one of the types */ declare function matchComponentTypes(componentInstance: ReactNode, types?: string[] | ComponentType[] | ComponentType[]): componentInstance is Type; export default matchComponentTypes; export { matchComponentTypes }; //# sourceMappingURL=matchComponentTypes.d.ts.map