import { StreamClient } from '../stream/StreamClient'; import { TcpAddress, TcpAddressInitializer } from '../base/Transports'; export declare class TcpClient extends StreamClient { /** * The address of the server to connect to. */ readonly address: TcpAddress; /** * The socket used for the connection. */ private socket?; /** * Construct a `TcpClient`. * * @param address The address of the server to connect to */ constructor(address?: TcpAddressInitializer); /** * @override Override of {@link StreamClient.start} to create * a new socket and set up event handling. */ start(): Promise; /** * @override Override of {@link Executor.stop} to * destroy the socket. */ stop(): Promise; /** * @implements Implements {@link ClientType.discover}. * * @description Not implemented yet. In the future * could be implemented using port scanning on the * localhost. */ static discover(): Promise; }