// Auto-generated stub — replace with real implementation export function useFrustrationDetection( _messages: unknown[], _isLoading: boolean, _hasActivePrompt: boolean, _otherSurveyOpen: boolean, ): { state: 'closed' | 'open'; handleTranscriptSelect: () => void } { return { state: 'closed', handleTranscriptSelect: () => {} }; }