import { EventEmitter } from 'events' ; import TunnelConfig from './tunnelConfig' ; export default abstract class BaseSSH2Promise extends EventEmitter { param cmd param params param options exec ( cmd , params ? , options ? ) { return Promise . reject ( false ) ; } param cmd param params param options spawn ( cmd , params ? , options ? ) { return Promise . reject ( false ) ; } /**
     * Get shell socket
     */ shell ( options ? ) { return Promise . reject ( false ) ; } /**
    * Get a subsys
    */ subsys ( cmd ) { return Promise . reject ( false ) ; } /**
     * Get a X11 port
     */ x11 ( cmd ) { return Promise . reject ( false ) ; } /**
     * Get a Socks Port
     */ getSocksPort ( localPort ) { return Promise . reject ( false ) ; } /**
     * Get existing tunnel by name
     */ getTunnel ( name ) { } /**
   * Add new tunnel if not exist
   */ addTunnel ( tunnelConfig ) { return Promise . reject ( false ) ; } /**
     * Close the tunnel
     */ closeTunnel ( name ? ) { return Promise . reject ( false ) ; } }