import { EventObject , SingleOrArray , ActionObject } from '.' ; export function each < TContext , TEvent extends EventObject > ( collection , item , actions ) ; export function each < TContext , TEvent extends EventObject > ( collection , item , index , actions ) ; export function each < TContext , TEvent extends EventObject > ( collection , item , indexOrActions , maybeActions ? ) { const actions = maybeActions || indexOrActions ; const index = maybeActions ? indexOrActions : undefined ; return { type : 'xstate.foreach' , collection , item , index , actions } ; }