import { AzExtServiceClientCredentials, IActionContext } from '@microsoft/vscode-azext-utils'; import { CancellationToken } from 'vscode'; import { ParsedSite } from './SiteClient'; /** * A local TCP server that forwards all connections to the Kudu tunnel websocket endpoint. */ export declare class TunnelProxy { private _port; private _site; private _server; private _openSockets; private _isSsh; private _credentials; constructor(port: number, site: ParsedSite, credentials: AzExtServiceClientCredentials, isSsh?: boolean); startProxy(context: IActionContext, token: CancellationToken): Promise; dispose(): void; /** * Ensures the site is up and running (Even if the state is technically "Running", Azure doesn't always keep a site fully "up" if no one has hit the url in a while) */ private pingApp; private checkTunnelStatus; private checkTunnelStatusWithRetry; private setupTunnelServer; }