import { EventEmitter } from 'events'; interface ModelScopeConfig { apiKey?: string; apiUrl?: string; model?: string; language?: string; maxContextLength?: number; } export declare class VoiceRecognitionModelScope extends EventEmitter { private apiKey; private apiUrl; private model; private language; private maxContextLength; private audioBuffer; private isRecording; private streamingSession; private contextText; constructor(config?: ModelScopeConfig); /** * Update the context for better recognition accuracy */ updateContext(terminalOutput: string[]): void; /** * Start streaming recognition */ startStreamingRecognition(): Promise; /** * Send audio chunk for recognition */ sendAudioChunk(audioData: Buffer): Promise; /** * Stop recognition */ stopRecognition(): void; /** * Check if API is properly configured */ isConfigured(): boolean; /** * Get current context */ getContext(): string; /** * Set maximum context length */ setMaxContextLength(length: number): void; } export {}; //# sourceMappingURL=voice-recognition-modelscope.d.ts.map