import { ReplayableAudioNode } from "../common.browser/Exports"; import { IEventSource, PlatformEvent } from "../common/Exports"; import { SpeechRecognitionEvent } from "./RecognitionEvents"; export declare class RequestSession { private privIsDisposed; private privServiceTelemetryListener; private privDetachables; private privRequestId; private privAudioSourceId; private privAudioNodeId; private privAudioNode; private privAuthFetchEventId; private privIsAudioNodeDetached; private privIsRecognizing; private privIsSpeechEnded; private privTurnStartAudioOffset; private privLastRecoOffset; private privHypothesisReceived; private privBytesSent; private privRecogNumber; private privSessionId; private privTurnDeferral; private privInTurn; private privConnectionAttempts; constructor(audioSourceId: string); get sessionId(): string; get requestId(): string; get audioNodeId(): string; get turnCompletionPromise(): Promise; get isSpeechEnded(): boolean; get isRecognizing(): boolean; get currentTurnAudioOffset(): number; get recogNumber(): number; get numConnectionAttempts(): number; get bytesSent(): number; listenForServiceTelemetry(eventSource: IEventSource): void; startNewRecognition(): void; onAudioSourceAttachCompleted(audioNode: ReplayableAudioNode, isError: boolean, error?: string): Promise; onPreConnectionStart: (authFetchEventId: string, connectionId: string) => void; onAuthCompleted(isError: boolean, error?: string): Promise; onConnectionEstablishCompleted(statusCode: number, reason?: string): Promise; onServiceTurnEndResponse(continuousRecognition: boolean): Promise; onSpeechContext: () => void; onServiceTurnStartResponse: () => void; onHypothesis(offset: number): void; onPhraseRecognized(offset: number): void; onServiceRecognized(offset: number): void; onAudioSent(bytesSent: number): void; onRetryConnection(): void; dispose(error?: string): Promise; getTelemetry: () => string; onStopRecognizing(): Promise; onSpeechEnded(): void; protected onEvent: (event: SpeechRecognitionEvent) => void; private onComplete; private detachAudioNode; }