import { ITunnelProxyInfo } from "../../../platform/tunnel/common/tunnelProxy.js"; import { ExtHostBrowserTunnelProxyShape } from "./extHost.protocol.js"; export declare const IExtHostBrowserTunnelProxy: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Hosts (in the local node extension host) one HTTPS proxy server per remote * network browsers use: the window's remote, through the remote connection, or * a remote agent host, through the renderer's agent host connection. * * Running the servers here — rather than in the shared process — gives them * in-process access to the resolver's managed connection, so managed remotes * (WSL, Dev Containers, Codespaces, Remote Tunnels) work natively, and keeps * each window's traffic isolated in that window's extension host. * * The default (common) implementation is a no-op; only the node extension * host can host a server (see `ExtHostBrowserTunnelProxy` in the node layer). */ export interface IExtHostBrowserTunnelProxy extends ExtHostBrowserTunnelProxyShape { readonly _serviceBrand: undefined; } export declare class ExtHostBrowserTunnelProxy implements IExtHostBrowserTunnelProxy { readonly _serviceBrand: undefined; $acquireNetworkProxy(_authority: string): Promise; $releaseNetworkProxy(_authority: string): void; }