The generalized Stokes theorem generalizes both Stokes theorem and the divergence theorem to multiple dimensions.
This should include quaternionic manifolds. which are manifolds that are characterized by quaternionic functions that use quaternionic number systems as their parameter spaces.
A special application of the generalized Stokes theorem is the usage of the spatial part of the quaternionic parameter space as the boundary that encapsulates part of the full quaternionic parameter space.
∫∭dω=∰ω
Here the first integral on the left restricts the real part of the quaternionic parameters from zero to a certain "time" T. On the right side ω concerns the static status quo at progression instant T. dω is the exterior derivative of manifold ω.
If quaternions are interpreted as dynamic geometric data with the real part as the progression stamp, then the above application of the generalized Stokes theorem can be interpreted as a description of what happens in a quaternionic space progression model on the rim between past and future. Here the "boundary" describes the static status quo of the model at a selected progression instant.
This model resembles the way that we describe universe. However, the above model is a strict Euclidean model.
https://en.wikipedia.org/wiki/Stokes%27_theorem#General_formulation
http://www.e-physics.eu/TheGeneralizedStokesTheorem.pdf