import { DynamicGrammarBuilder } from "./Exports.js"; import { SpeechContext as SpeechServiceContext } from "./ServiceMessages/SpeechContext.js"; /** * Represents the JSON used in the speech.context message sent to the speech service. * The dynamic grammar is always refreshed from the encapsulated dynamic grammar object. */ export declare class SpeechContext { private privContext; private privDynamicGrammar; constructor(dynamicGrammar: DynamicGrammarBuilder); getContext(): SpeechServiceContext; /** * @Internal * This is only used by pronunciation assessment config. * Do not use externally, object returned will change without warning or notice. */ setPronunciationAssessmentParams(params: string, isSpeakerDiarizationEnabled?: boolean): void; setDetailedOutputFormat(): void; setWordLevelTimings(): void; setSpeakerDiarizationAudioOffsetMs(audioOffsetMs: number): void; /** * Sets the model block in speech.context. Mirrors the C++ AddModelJsonToContext semantics: * the whole model block is omitted when no name is provided, and "options" is emitted only * when the (JSON string) options blob is present. * @param name The custom model name. An empty/undefined value clears the model block. * @param options Optional JSON string of arbitrary model options. */ setModel(name: string, options?: string): void; toJSON(): string; }