import type { DnsFn } from './vitest-network-allowlist-dns.mts'; export type NetModule = { isIP: (host: string) => number; Socket: { prototype: { connect: DnsFn; }; }; }; export type SocketAllowlistHooks = { isAllowedHost: (host: string) => boolean; blockConnection: (host: string) => Error; }; export declare function patchSocketConnect(net: NetModule, hooks: SocketAllowlistHooks): void;