export declare class TunnelClient { private ws; private localPort; private baseUrl; private appID; private hostedToken; private enableInternalManifestRoute; private replaceExisting; constructor(localPort: number, baseUrl: string, appID: string, hostedToken: string, enableInternalManifestRoute?: boolean, replaceExisting?: boolean); connect(): Promise; close(): void; private buildProxyUrl; private parseMessage; private handleMessage; private getRequestPayload; private forwardRequest; private collectHeaders; private sendBinaryEnvelope; private encodeBinaryEnvelope; private toBodyBuffer; private parseBinaryEnvelope; private parseJSONEnvelope; private toBuffer; private getBodyLength; private serializeError; private writeLog; } //# sourceMappingURL=tunnel-client.d.ts.map