machine()
import { machine } from '@dunky-dev/state-machine'The core builder: define states, transitions, context, and effects as pure behavior.
TODO: signature, config shape (
initial,context,states,on), and a worked example. Related types:Machine,MachineConfig,TransitionConfig.