/// interface BuffIp { port: Buffer; host: Buffer; type: number; } /** * The Address class turns buffer Address to string address and conversely */ declare class Address { host: string; type: string; port: number; constructor(port: number, host: string); /** * A factory method which construct an Address instance from Buffer * @param host - Host Buffer * @param port - Port Buffer * @param type - type number * @returns Address */ static buffToAddrFactory(port: Buffer, host: Buffer, type: number): Address; /** * Turns Address instance to BuffIp * @returns BuffIp */ toBuffer(): BuffIp; } export default Address;