Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.d.ts « dist « socks-proxy-agent « node_modules « npm « deps - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8fe0e58884a9d77be833729f9b283390daa5d34e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/// <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;