mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
00fb4d1af7
- 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
36 lines
976 B
TypeScript
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;
|
|
}
|