import { type Socket } from "node:net"; import type { Log } from "@intentic/local-agent"; export declare const syncSshPort: (sandboxId: string) => number; export declare const sshSocketUrl: (sandboxUrl: string) => string; export interface TunnelTarget { readonly sandboxId: string; readonly sandboxUrl: string; readonly syncToken: string; } export declare const tunnelTargets: (pairings: readonly { readonly sandboxId: string; readonly sandboxUrl: string; readonly syncToken?: string; }[]) => readonly TunnelTarget[]; export declare const bridgeConnection: (socket: Socket, target: TunnelTarget, onError: (message: string) => void) => void; export declare const startSshTunnel: (target: TunnelTarget, log: Log) => Promise<(() => Promise) | undefined>; export declare const createTunnelPool: (log: Log) => { reconcile: (targets: readonly TunnelTarget[]) => Promise; stopAll: () => Promise; }; export declare const tunnelReady: (port: number, timeoutMs: number) => Promise; //# sourceMappingURL=tunnel.d.ts.map