IStateMiddleware

Interface representing a middleware function for state management. Allows modification or validation of state during lifecycle operations.