import { type ClientRequest, type IncomingMessage, type RequestOptions } from 'node:http'; /** Literal-only loopback target primitives shared by the terminal and session * preview reverse proxies. Keeping DNS names out of this module makes it * impossible for either proxy to grow a DNS-rebinding SSRF path accidentally. */ export type LiteralLoopbackHost = '127.0.0.1' | '::1'; export declare function isLiteralLoopbackHost(value: unknown): value is LiteralLoopbackHost; export declare function isTcpPort(value: unknown): value is number; /** Runtime-checked HTTP/WS handshake dial. Callers cannot override host/port * through RequestOptions because the validated values are written last. */ export declare function requestLiteralLoopback(target: { host: LiteralLoopbackHost; port: number; }, options: Omit, callback?: (response: IncomingMessage) => void): ClientRequest; //# sourceMappingURL=loopback-target.d.ts.map