projecte_ionic/node_modules/socks-proxy-agent/dist/index.d.ts
2022-02-09 18:30:03 +01:00

22 lines
885 B
TypeScript
Executable file

/// <reference types="node" />
import { Url } from 'url';
import { SocksProxy } from 'socks';
import tls from 'tls';
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;
tls?: tls.ConnectionOptions | 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;