export declare const enum TrafficDirection { FromEtcd = 'FromEtcd', ToEtcd = 'ToEtcd' } export declare class Proxy { isActive: boolean; connections: Array<{ end(): void; }>; private server; private host; private port; private enabledDataFlows; /** * activate creates the proxy server. */ activate(): Promise; /** * suspend temporarily shuts down the server, but does not 'deactivate' the * proxy; new connections will still try to hit it. Can be restored with * resume(). */ suspend(): void; /** * Starts up a previously stopped server. */ unsuspend(): void; /** * Disables data flowing in one direction on the connection. */ pause(direction: TrafficDirection): void; /** * Reenables data flow on the connection. */ resume(direction: TrafficDirection): void; /** * Destroys a previously-active proxy server. */ deactivate(): Promise; /** * Returns the address the server is listening on. */ address(): string; private handleIncoming; } export declare const proxy: Proxy;