Optional
Check if redo is available.
Check if undo is available.
Number of redo steps available.
Number of undo steps available.
Clear both stacks.
Record the current UGM state before a mutation.
Redo: restore the next state. Returns the restored UGM or null.
Undo: restore the previous state. Returns the restored UGM or null.
Check if redo is available.