import * as React from 'react'; export type RenderProp = ((props: Props, state: State) => React.ReactElement) | React.ReactElement; /** * Resolves the rendering logic for a component. * Handles three scenarios: * 1. A render function that receives props and state * 2. A React element * 3. A default element * * @ignore - internal hook. */ export declare function useComponentRenderer, State extends Record>(defaultElement: keyof React.JSX.IntrinsicElements | React.ComponentType, render: RenderProp | undefined, props: Props, state?: State): React.ReactElement>;