import { Observable } from 'rxjs' ; import { EmptyEventCreator , Event , EventCreator1 } from '../createEvent/createEvent.h' ; export type EffectCreator < Payload , Result , Error = any > = { ( payload ) : Observable < Event < any , any > > ; start : EventCreator1 < Payload > ; success : EventCreator1 < Result > ; fail : EventCreator1 < Error > ; complete : EmptyEventCreator ; use ( effectFn ) : EffectCreator < Payload , Result , Error > ; getType ( ) : string ; } ;