import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IConfigurationService } from "../../../../../platform/configuration/common/configuration.service.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { IProductService } from "../../../../../platform/product/common/productService.service.js"; import { IVoiceCodeTranscriptionClient } from "./voiceCodeTranscriptionClient.service.js"; export interface IVoiceCodeTranscription { readonly turnId: string; readonly text: string; readonly status: "partial" | "final"; readonly revision: number; readonly committed: string; } export interface IVoiceCodeTranscriptionError { readonly detail: string; readonly code?: string; readonly turnId?: string; readonly terminal?: boolean; } export declare class VoiceCodeTranscriptionClient extends Disposable implements IVoiceCodeTranscriptionClient { private readonly _configurationService; private readonly _productService; private readonly _logService; readonly _serviceBrand: undefined; private readonly _onTranscription; readonly onTranscription: import("../../../../../base/common/event.js").Event; private readonly _onError; readonly onError: import("../../../../../base/common/event.js").Event; private readonly _onDidClose; readonly onDidClose: import("../../../../../base/common/event.js").Event; private _socket; private _connectDeferred; private _sessionInit; private _connectTimeout; private _sessionInitTimeout; private _intentionalClose; private _window; private _pingTimer; private _pongTimer; private readonly _activeTurns; private readonly _lastRevisionByTurn; get isConnected(): boolean; constructor(_configurationService: IConfigurationService, _productService: IProductService, _logService: ILogService); connect(window: Window & typeof globalThis, authToken: string): Promise; startSession(): Promise; sendPttStart(turnId: string): void; sendPttAudioChunk(turnId: string, audio: string): void; sendPttEnd(turnId: string): void; disconnect(): void; dispose(): void; private _handleMessage; private _handleTranscription; private _handleError; private _reportError; private _send; private _assertConnected; private _assertTurnId; private _assertActiveTurn; private _startPing; private _stopPing; private _clearPongTimeout; private _clearConnectTimeout; private _clearSessionInitTimeout; }