interface SequenceState { hash : string, name : string, progress : number } interface State { width? : number, height? : number, sequence? : SequenceState } interface Message { cmd? : string; state? : State; }