import type { HttpsProxyAgent } from 'https-proxy-agent'; import { UnexpectedError } from 'n8n-workflow'; import type http from 'node:http'; import type net from 'node:net'; import type { SsrfBridge } from '../ssrf'; type ProxyConnectOpts = Parameters['connect']>[1]; export declare class UnknownConnectionHostError extends UnexpectedError { constructor(); } type ConnectionOptions = { host?: string | null; hostname?: string | null; }; type CreateConnection = (options: ConnectionOptions, onConnect?: (error: Error | null, stream?: unknown) => void) => unknown; interface ProxyConnectionAgent { connectOpts: ConnectionOptions; connect(req: http.ClientRequest, opts: ProxyConnectOpts): Promise; } export declare function installProxyConnectionGuard(agent: ProxyConnectionAgent, ssrf: SsrfBridge): void; export declare function installConnectionGuard(target: { createConnection: CreateConnection; }, ssrf: SsrfBridge): void; export {};