import { ComponentProps, ElementType, ForwardRefRenderFunction } from 'react'; export declare type As = ElementType; export declare type PropsWithAs, Type extends As = As> = Props & Omit, 'as' | keyof Props> & { as?: Type; }; export declare type ComponentWithAs = { (props: PropsWithAs & { as: Type; }): JSX.Element; (props: PropsWithAs): JSX.Element; }; export declare function forwardRefWithAs(component: ForwardRefRenderFunction): ComponentWithAs;