Files
Tom Moor 00fb4d1af7 chore: Update node style imports (#11277)
- crypto → node:crypto
  - fs → node:fs
  - fs/promises → node:fs/promises
  - path → node:path
  - http → node:http
  - https → node:https
  - stream → node:stream
  - buffer → node:buffer
  - url → node:url
  - os → node:os
  - net → node:net
  - dns → node:dns
  - events → node:events
  - readline → node:readline
  - querystring → node:querystring
  - util → node:util
2026-01-26 20:51:50 -05:00

36 lines
976 B
TypeScript

declare module "tunnel-agent" {
import { Agent as HttpAgent } from "node:http";
import { Agent as HttpsAgent } from "node:https";
interface TunnelOptions {
proxy: {
host: string | null;
port: string | number | null;
proxyAuth?: string | null;
headers?: { [key: string]: string };
};
ca?: Buffer[] | Buffer;
cert?: Buffer | string;
key?: Buffer | string;
passphrase?: string;
rejectUnauthorized?: boolean;
secureOptions?: number;
secureProtocol?: string;
ciphers?: string;
localAddress?: string;
maxSockets?: number;
keepAlive?: boolean;
keepAliveMsecs?: number;
}
export interface TunnelAgent {
httpOverHttp: (options: TunnelOptions) => HttpAgent;
httpsOverHttp: (options: TunnelOptions) => HttpsAgent;
httpOverHttps: (options: TunnelOptions) => HttpAgent;
httpsOverHttps: (options: TunnelOptions) => HttpsAgent;
}
const tunnel: TunnelAgent;
export = tunnel;
}