import { MagnetarStreamAction , MagnetarFetchAction , MagnetarDeleteAction , MagnetarDeletePropAction , MagnetarInsertAction , MagnetarWriteAction , ActionName , } from './actions' ; /**
 * ActionType is only used as a shortcut to set the execution order in the global/module/action settings.
 */ export type ActionType = 'read' | 'write' | 'delete' ; export const actionNameTypeMap = { fetch : 'read' , stream : 'read' , insert : 'write' , merge : 'write' , assign : 'write' , replace : 'write' , deleteProp : 'write' , delete : 'delete' , } ; export type ActionTernary < TActionName extends ActionName > = TActionName extends 'stream' ? MagnetarStreamAction : TActionName extends 'fetch' ? MagnetarFetchAction : TActionName extends 'delete' ? MagnetarDeleteAction : TActionName extends 'deleteProp' ? MagnetarDeletePropAction : TActionName extends 'insert' ? MagnetarInsertAction : MagnetarWriteAction ;