UNPKG

jest-node-http

Version:
29 lines (28 loc) 681 B
export interface IAgentOptions { keepAlive?: boolean; keepAliveMsecs?: number; maxSockets?: number; maxFreeSockets?: number; } export interface IVoidMockInstance { (): void; mockReset: () => void; } export declare class Agent { createConnection: any; keepSocketAlive: any; reuseSocket: any; destroy: IVoidMockInstance; getName: any; freeSockets: any; maxFreeSockets: number; maxSockets: number; requests: any; sockets: any; private agentOptions; private keepAlive; private keepAliveMsecs; constructor(options?: IAgentOptions); resetMocked(): void; } export declare const globalAgent: () => Agent;