declare module 'native-duplexpair' {
  import { Duplex } from 'stream';

  class DuplexSocket extends Duplex { }

  class DuplexPair {
    socket1: DuplexSocket;
    socket2: DuplexSocket;
  }

  export = DuplexPair;
}
