import { ForwardRefRenderFunction, PropsWithoutRef, Ref } from 'react';
export declare const withRef: <R extends HTMLElement, P = object>(render: ForwardRefRenderFunction<R, PropsWithoutRef<P>>) => import('react').ForwardRefExoticComponent<PropsWithoutRef<P> & import('react').RefAttributes<R>> | ((props: PropsWithoutRef<P> & {
    ref?: Ref<R>;
}) => import('react').ReactNode);
