import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../base/common/observable.js"; import { URI } from "../../../../../base/common/uri.js"; import { ICloudSandboxApiService } from "../../../../../platform/agentHost/common/cloudSandboxAgentHost.service.js"; import { RemoteAgentHostConnectionStatus } from "../../../../../platform/agentHost/common/remoteAgentHostService.js"; import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { IChatService } from "../../common/chatService/chatService.service.js"; import { IChatSession, IChatSessionContentProvider } from "../../common/chatSessionsService.js"; import { ICloudSandboxReadOnlyConfig } from "./cloudSandboxReadOnlySessionHandler.js"; interface ICloudSandboxSessionConfig extends ICloudSandboxReadOnlyConfig { readonly connectionStatus?: IObservable; } /** Serves whichever source is ready first, then promotes recorded history without unregistering. */ export declare class CloudSandboxSessionHandler extends Disposable implements IChatSessionContentProvider { private readonly _config; private readonly _logService; private readonly _apiService; private readonly _chatService; private readonly _sessions; private readonly _readOnlyHandler; private readonly _liveReady; private _liveProvider; constructor(_config: ICloudSandboxSessionConfig, instantiationService: IInstantiationService, _logService: ILogService, _apiService: ICloudSandboxApiService, _chatService: IChatService); setLiveProvider(provider: IChatSessionContentProvider): void; retryLiveSessions(): void; provideChatSessionContent(resource: URI, token: CancellationToken): Promise; private _disposeUnreferencedSession; private _accept; private _updateHistoryStatus; private _loadHistory; private _loadLive; get updateChatSessionMetadata(): IChatSessionContentProvider["updateChatSessionMetadata"]; resolveChatResponseUri(resource: URI, href: string, kind: "link" | "image"): string; provideChatInputCompletions: NonNullable; provideChatInputCompletionTriggerCharacters(): Promise; dispose(): void; } export {};