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; } export declare class SpeechRecognizer implements Speech.ISpeechRecognizer { audioStreamStartInitiated: boolean; isStreamingToService: boolean; onIntermediateResult: Func; onFinalResult: Func; onAudioStreamingToService: Action; onRecognitionFailed: Action; locale: string; referenceGrammarId: string; private actualRecognizer; private grammars; private properties; constructor(properties?: ICognitiveServicesSpeechRecognizerProperties); warmup(): void; setGrammars(grammars: string[]): void; startRecognizing(): Promise; speechIsAvailable(): boolean; stopRecognizing(): Promise; private log(message); }