VoiceAgentConnectionStateChangedHandler type

Called when a voice-agent connection changes state.

type VoiceAgentConnectionStateChangedHandler = (
  state: VoiceAgentConnectionState,
  previousState: VoiceAgentConnectionState
) => void