# Functions
ChainName - name of the current chain.
Finalise - shutdown mode handling.
Initialise - set up the mode system.
Is - detect mode.
IsNot - detect mode.
IsTesting - special for testing.
Set - change mode.
String - current mode represented as a string.
# Type aliases
Mode - type to hold the mode.