UNPKG

572 BTypeScriptView Raw
1/// <reference types="node" />
2
3import { Agent as HttpAgent, AgentOptions as HttpAgentOptions } from "http";
4
5export = ForeverAgentModule;
6
7interface ForeverAgentOptions extends HttpAgentOptions {
8 minSockets?: number | undefined;
9}
10
11declare class ForeverAgent extends HttpAgent {
12 constructor(options?: ForeverAgentOptions);
13
14 static defaultMinSockets: number;
15}
16
17declare class ForeverAgentSSL extends ForeverAgent {
18 constructor(options?: ForeverAgentOptions);
19}
20
21declare const ForeverAgentModule: typeof ForeverAgent & {
22 SSL: typeof ForeverAgentSSL;
23};