import type * as net from 'net' ; import { Callback , BufferEncoding } from '../../_internal/types' ; import { Duplex } from '../stream/duplex' ; export class Socket extends Duplex implements net . Socket { readonly bufferSize : number = 0 ; readonly bytesRead : number = 0 ; readonly bytesWritten : number = 0 ; readonly connecting : boolean = false ; readonly destroyed : boolean = false ; readonly localAddress : string = '' ; readonly localPort : number = 0 ; readonly remoteAddress ? : string = '' ; readonly remoteFamily ? : string = '' ; readonly remotePort ? : number = 0 ; constructor ( _options ? ) { super ( ) ; } write ( _buffer , _arg1 ? , _arg2 ? ) { return false ; } connect ( _arg1 , _arg2 ? , _arg3 ? ) { return this ; } end ( _arg1 ? , _arg2 ? , _arg3 ? ) { } setEncoding ( _encoding ? ) { return this ; } pause ( ) { return this ; } resume ( ) { return this ; } setTimeout ( _timeout , _callback ? ) { return this ; } setNoDelay ( _noDelay ? ) { return this ; } setKeepAlive ( _enable ? , _initialDelay ? ) { return this ; } address ( ) { return { } ; } unref ( ) { return this ; } ref ( ) { return this ; } }