You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
818 B
19 lines
818 B
/// <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;
|
|
|