///
export declare class ClientTunnel {
readonly port: number;
readonly key: Buffer;
readonly endpoint: string;
readonly wkHandler: (path: string) => Promise;
onConnected?: () => void;
onDisconnected?: () => void;
private _session;
private _ws;
private _started;
constructor(port: number, key: Buffer, endpoint: string, wkHandler: (path: string) => Promise);
start: () => void;
private _start;
private _disconnected;
}