import { AsElementProps } from "../../types/shared.mjs"; import { ComponentPropsWithRef, ComponentPropsWithoutRef, JSX, JSXElementConstructor } from "react"; //#region src/internal/factory/create-polymorphic-factory.d.ts type ExtendedProps, OverrideProps = Record> = OverrideProps & Omit; type ElementType$1 = keyof JSX.IntrinsicElements | JSXElementConstructor; type PropsOf = JSX.LibraryManagedAttributes>; type InheritedProps> = ExtendedProps, Props>; type PolymorphicRef = TComponent extends ElementType$1 ? ComponentPropsWithRef['ref'] : never; type PolymorphicComponentProps> = TComponent extends ElementType$1 ? InheritedProps> & { ref?: PolymorphicRef; renderRoot?: (props: any) => any; } : TProps & { as: ElementType$1; renderRoot?: (props: Record) => any; }; //#endregion export { PolymorphicComponentProps };