Guard if an object implements the StateStore interface — most notably, generateState() and verifyState(state: string).