import { type Component, type FunctionComponent, type JSXElementConstructor, type ReactElement, type ReactNode } from 'react'; /** * Extracts the props type from a React component type. */ export type InferComponentProps = T extends FunctionComponent ? P : T extends Component ? P : never; /** * Check if a node is a React element of a specific type. * @param node The node to check * @param type The type to check against * @returns True if the node is a React element of the specified type */ export declare function isElementOfType = string | JSXElementConstructor>(node: ReactNode, type: T): node is ReactElement, T>; export default isElementOfType; //# sourceMappingURL=ElementUtils.d.ts.map