frontend/.pnpm-store/v3/files/7d/d164f0c9d0d1bf8d55061a71ad8c9ab86bcedd6b303002e875d10a62a0d02292663df8307fbbe38b3860ee0c710921ade180c2f4031494711201e8b8e75b08

20 lines
818 B
Plaintext

/// <reference types="node" />
import { Url } from 'url';
import { SocksProxy } from 'socks';
import { AgentOptions } from 'agent-base';
import _SocksProxyAgent from './agent';
declare function createSocksProxyAgent(opts: string | createSocksProxyAgent.SocksProxyAgentOptions): _SocksProxyAgent;
declare namespace createSocksProxyAgent {
interface BaseSocksProxyAgentOptions {
host?: string | null;
port?: string | number | null;
username?: string | null;
}
export interface SocksProxyAgentOptions extends AgentOptions, BaseSocksProxyAgentOptions, Partial<Omit<Url & SocksProxy, keyof BaseSocksProxyAgentOptions>> {
}
export type SocksProxyAgent = _SocksProxyAgent;
export const SocksProxyAgent: typeof _SocksProxyAgent;
export {};
}
export = createSocksProxyAgent;