source: trip-planner-front/node_modules/socks-proxy-agent/dist/index.d.ts@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 885 bytes
RevLine 
[6a3a178]1/// <reference types="node" />
2import { Url } from 'url';
3import { SocksProxy } from 'socks';
4import tls from 'tls';
5import { AgentOptions } from 'agent-base';
6import _SocksProxyAgent from './agent';
7declare function createSocksProxyAgent(opts: string | createSocksProxyAgent.SocksProxyAgentOptions): _SocksProxyAgent;
8declare namespace createSocksProxyAgent {
9 interface BaseSocksProxyAgentOptions {
10 host?: string | null;
11 port?: string | number | null;
12 username?: string | null;
13 tls?: tls.ConnectionOptions | null;
14 }
15 export interface SocksProxyAgentOptions extends AgentOptions, BaseSocksProxyAgentOptions, Partial<Omit<Url & SocksProxy, keyof BaseSocksProxyAgentOptions>> {
16 }
17 export type SocksProxyAgent = _SocksProxyAgent;
18 export const SocksProxyAgent: typeof _SocksProxyAgent;
19 export {};
20}
21export = createSocksProxyAgent;
Note: See TracBrowser for help on using the repository browser.