import { Disposable } from "../../../../../base/common/lifecycle.js"; import { StopWatch } from "../../../../../base/common/stopwatch.js"; import { ICloudSandboxApiService } from "../../../../../platform/agentHost/common/cloudSandboxAgentHost.service.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { ICloudSandboxTelemetryService } from "./cloudSandboxTelemetry.service.js"; type SessionFeedSocket = Pick; export type CloudSandboxSessionFeedRefresh = { readonly reason: "change"; readonly taskIds: readonly string[]; } | { readonly reason: "renewal" | "reconnect"; }; /** Account-scoped task invalidations, independent of the AHP relay. Seamless renewal catches up incrementally; connection gaps require full reconciliation. */ export declare class CloudSandboxSessionFeed extends Disposable { private readonly _onInvalidate; private readonly _webSocketFactory; private readonly _stopWatchFactory; private readonly _apiService; private readonly _logService; private readonly _telemetryService; private readonly _active; private readonly _pending; private readonly _reconnect; private readonly _refresh; private readonly _updates; private readonly _taskIds; private _refreshReason; private _start; private _connecting; /** Dropped sockets and failed attempts since the last healthy connection; drives both backoff policies. */ private _consecutiveFailures; get connected(): boolean; constructor(_onInvalidate: (refresh: CloudSandboxSessionFeedRefresh) => void, _webSocketFactory: ((url: string, protocol: string) => SessionFeedSocket) | undefined, _stopWatchFactory: (() => Pick) | undefined, _apiService: ICloudSandboxApiService, _logService: ILogService, _telemetryService: ICloudSandboxTelemetryService); /** Wait for the first connection attempt before the initial authoritative list read. */ start(): Promise; private _invalidate; private _connect; private _doConnect; private _report; } export {};