Indicates if the state machine is running
Returns an ethers Wallet the state machine can use
Adds a custom state to the state machine.
The parameters for the state.
Adds a state to the state machine using the declarative interface.
The state definition.
Adds a transition between two states.
The parameters for the transition.
Resolves a value from the context if it specifies a path or returns it as a literal
the literal value or read context object
Starts the state machine with the given initial state.
The key of the initial state.
Optional
onStop: voidAsyncFunctionOptional callback to execute when the machine is stopped.
Static
from
A StateMachine class that manages states and transitions between them.