Create a StateConfig structure for storing state configuration settings. Don't export the State finalizer function.