import { ComponentPropsWithRef, ElementType } from "react"; //#region src/utils/modern-polymorphic.d.ts /** * Distributive Omit utility type that works correctly with union types */ type DistributiveOmit = T extends unknown ? Omit : never; /** * Simplified polymorphic props type that handles the common pattern of * `DistributiveOmit, 'as'>` */ type PolymorphicProps = DistributiveOmit & Props, 'as'> & { as?: TAs; }; //#endregion export { DistributiveOmit, PolymorphicProps };