import type { ComponentType, ReactElement } from 'react'; /** * A hook that takes a component type and props and returns a memoized React element. * This is useful for creating reusable component instances with memoization to prevent * unnecessary re-renders when props haven't changed. * * @template T - The props type for the component * @param Component - React component to render * @param props - Props to pass to the component * @returns Memoized React element * * @example * ```tsx * const MyComponent = ({ title, count }) => ( *
*

{title}

*

Count: {count}

*
* ); * * function ParentComponent() { * const [count, setCount] = useState(0); * * // This view will only re-render when title or count changes * const inflatedView = useInflateView(MyComponent, { * title: 'My Title', * count: count * }); * * return ( *
* {inflatedView} * *
* ); * } * ``` */ export declare const useInflateView: >(Component: T, props: React.ComponentProps) => ReactElement; export default useInflateView;