I think this should be 
```
export = StateMachine;
```