/**
 * Residential proxy info — SOCKS5 exit-node proxy for tenants with access.
 */
import path from "path";
import { getContext } from "../client.js";
import { readJsonFile } from "../ipc.js";
/**
 * Returns the SOCKS5 proxy URL for this tenant, or null if no proxy is available.
 * Use the url with agent-browser --proxy or with any SOCKS5-capable HTTP client.
 */
export async function getProxyInfo(ipcDir) {
    const dir = ipcDir ?? getContext().ipcDir;
    return readJsonFile(path.join(dir, "proxy.json")) ?? null;
}
//# sourceMappingURL=proxy.js.map