frontend/.pnpm-store/v3/files/38/548ac57fdb4a28aa69683c20b460ce91464126befd8c1541d274ad47c0d5e15e76272699e66b40a928e6de1e44a6c20323e8dbbc1bcfdb777aa14c3cc0bc1c

22 lines
632 B
Plaintext

/// <reference types="node" />
import net from 'net';
import { Agent, ClientRequest, RequestOptions } from 'agent-base';
import { SocksProxyAgentOptions } from '.';
/**
* The `SocksProxyAgent`.
*
* @api public
*/
export default class SocksProxyAgent extends Agent {
private lookup;
private proxy;
constructor(_opts: string | SocksProxyAgentOptions);
/**
* Initiates a SOCKS connection to the specified SOCKS proxy server,
* which in turn connects to the specified remote host and port.
*
* @api protected
*/
callback(req: ClientRequest, opts: RequestOptions): Promise<net.Socket>;
}