import {useMixing, UseMixingProps} from './hooks' import {MixingValues, UnknownProps, MixingChain, MixingToFn, NoInfer} from './types' export type MixingComponentProps< State extends object = UnknownProps > = unknown & UseMixingProps & { children: (values: MixingValues) => JSX.Element | null } export function Mixing( props: { from: State to?: MixingChain> | MixingToFn> } & Omit>, 'from' | 'to'> ): JSX.Element | null export function Mixing( props: { to: State } & Omit>, 'to'> ): JSX.Element | null export function Mixing({ children, ...props }: any) { return children(useMixing(props)) }