Tunnel.d.ts 498 B

123456789101112131415161718
  1. /// <reference types="node" />
  2. import { EventEmitter } from 'events';
  3. import { TunnelOptions } from './types';
  4. declare class Tunnel extends EventEmitter {
  5. private readonly opts;
  6. private closed;
  7. url?: string;
  8. cachedUrl?: string;
  9. private tunnelCluster?;
  10. clientId?: string;
  11. constructor(opts?: TunnelOptions);
  12. private _getInfo;
  13. private _init;
  14. private _establish;
  15. open(callback: (err: Error | null) => void): void;
  16. close(): void;
  17. }
  18. export default Tunnel;