export interface ActionEvent { action: keyof Actions; payload: Actions[keyof Actions]; oldState: State; newState: State; }