import { ElementType, PropsWithoutRef, ForwardRefRenderFunction } from 'react'; import type { InternalRefForwardingComponent } from '../../types'; /** * A utility function to wrap components with `React.forwardRef`. * It extends the type signature for better integration with custom components. * * @param component - The component to wrap, with `props` and `ref` types explicitly defined. * @returns A forward-ref component with extended type inference. */ export declare function forwardRef = Record, OmitKeys extends keyof any = never>(component: ForwardRefRenderFunction>, subcomponents?: Subcomponents): InternalRefForwardingComponent & Subcomponents;