import { Action, Func, Speech } from '../SpeechModule'; export interface ISpeechContextDgiGroup { Type: string; Hints?: { ReferenceGrammar: string; }; Items?: Array<{ Text: string; }>; } export interface ISpeechContext { dgi: { Groups: ISpeechContextDgiGroup[]; }; } export interface ICognitiveServicesSpeechRecognizerProperties { locale?: string; subscriptionKey?: string; fetchCallback?: (authFetchEventId: string) => Promise; fetchOnExpiryCallback?: (authFetchEventId: string) => Promise; resultForm?: string; cid?: string; region?: string; recognitionEventListener?: (status: string, result?: string) => void; intermediateResultListener?: (result: string) => void; conversationMode?: boolean; } export declare class SpeechRecognizer implements Speech.ISpeechRecognizer { audioStreamStartInitiated: boolean; isStreamingToService: boolean; onIntermediateResult: Func; onFinalResult: Func; onAudioStreamingToService: Action; onRecognitionFailed: Action; locale: string; referenceGrammarId: string; conversationMode: boolean; private actualRecognizer; private grammars; private properties; private recognitionEventListener; private intermediateResultListener; constructor(properties?: ICognitiveServicesSpeechRecognizerProperties); warmup(): void; setGrammars(grammars: string[]): void; startRecognizing(): Promise; speechIsAvailable(): boolean; stopRecognizing(): Promise; sendMessage(message: string): void; private log; }