import { ComponentClass , ComponentType } from 'react' ; import { Omit } from 'stapp/lib/types/omit' ; hidden export type ConsumeHoc < State , Api > = { ( ) : < ConsumerProps extends Partial < State & Api > , ResultProps extends Omit < ConsumerProps , keyof ( State & Api ) > > ( component : ComponentType < ConsumerProps > ) => ComponentClass < ResultProps > ; < SelectedState > ( map ) : < ConsumerProps extends Partial < SelectedState & Api > , ResultProps = Omit < ConsumerProps , keyof ( SelectedState & Api ) > > ( component : ComponentType < ConsumerProps > ) => ComponentClass < ResultProps > ; } ;