frontend/.pnpm-store/v3/files/7d/76e748979db32d5d8828db0569335891186662787e00a1d1eab5744675b69579c1188c33c7f1625f1f3c847af831a81a1f03e141ae9ac360c46f0c337a19a5

18 lines
697 B
Plaintext

import { SocksClientOptions, SocksClientChainOptions } from './constants';
/**
* Error wrapper for SocksClient
*/
declare class SocksClientError extends Error {
options: SocksClientOptions | SocksClientChainOptions;
constructor(message: string, options: SocksClientOptions | SocksClientChainOptions);
}
/**
* Shuffles a given array.
* @param array The array to shuffle.
*/
declare function shuffleArray(array: unknown[]): void;
declare type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
[K in Keys]?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
}[Keys];
export { RequireOnlyOne, SocksClientError, shuffleArray };