import { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, ForwardedRef } from 'react'; export type DistributiveOmit = T extends any ? Omit : never; export type ComponentWithoutRefAsPropParams = { as?: As; } & DistributiveOmit, 'as'>; export type ComponentWithRefAsPropParams = { as?: As; } & DistributiveOmit, 'as' & { ref: ForwardedRef; }>; export type Optional = Pick, K> & Omit; export type SelectedRadioValue = string | null | undefined;