util.d.ts 484 B

1234567891011121314
  1. import { SocksClientOptions, SocksClientChainOptions } from './constants';
  2. /**
  3. * Error wrapper for SocksClient
  4. */
  5. declare class SocksClientError extends Error {
  6. options: SocksClientOptions | SocksClientChainOptions;
  7. constructor(message: string, options: SocksClientOptions | SocksClientChainOptions);
  8. }
  9. /**
  10. * Shuffles a given array.
  11. * @param array The array to shuffle.
  12. */
  13. declare function shuffleArray(array: unknown[]): void;
  14. export { SocksClientError, shuffleArray };