import { Event } from "../../../../../base/common/event.js"; import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../base/common/observable.js"; import { type ICachedTunnel, type ITunnelVisibility } from "../../../../../platform/agentHost/common/tunnelAgentHost.js"; import { IStorageService } from "../../../../../platform/storage/common/storage.service.js"; /** Persists the tunnel cache, picker dismissals, and auto-connect suppressions shared by browser tunnel services. */ export declare class TunnelAgentHostStorage extends Disposable { private readonly _onDidChangeTunnels; readonly onDidChangeTunnels: Event; private readonly _cachedTunnels; private readonly _dismissedTunnels; private readonly _autoConnectSuppressedTunnels; /** Cached tunnels, persisted across windows. */ readonly cachedTunnels: IObservable; /** Tunnel IDs explicitly dismissed from the remote-host picker. */ readonly dismissedTunnels: IObservable; /** Tunnel IDs whose automatic reconnect is suppressed. */ readonly autoConnectSuppressedTunnels: IObservable; constructor(storageService: IStorageService); getCachedTunnels(): ICachedTunnel[]; cacheTunnel(tunnel: ICachedTunnel): void; removeCachedTunnel(tunnelId: string): void; isTunnelDismissed(tunnelId: string): boolean; getTunnelVisibility(): ITunnelVisibility; dismissTunnel(tunnelId: string): void; clearTunnelDismissal(tunnelId: string): void; isAutoConnectSuppressed(tunnelId: string): boolean; suppressAutoConnect(tunnelId: string): void; clearAutoConnectSuppression(tunnelId: string): void; }