/** * ngrok tunnel management for making local services reachable from remote workspaces. * * Used by `sudopod headscale start` to expose local Headscale to Coder workspaces on AWS. * Spawns ngrok as a detached process so it survives after the CLI command exits. */ export interface NgrokTunnelResult { /** Public HTTPS URL, e.g. "https://abc123.ngrok-free.app" */ url: string; /** PID of the ngrok process (for cleanup via stopNgrokTunnel) */ pid: number; } /** * Start an ngrok tunnel to the given local port. * * Spawns ngrok as a **detached** process so it survives after the CLI exits. * Polls the ngrok local API for the public HTTPS URL. * * Requires `ngrok` CLI installed and authenticated: * ngrok config add-authtoken */ export declare function startNgrokTunnel(port: number, timeoutMs?: number): Promise; /** * Stop an ngrok tunnel by killing its process. */ export declare function stopNgrokTunnel(pid: number): void; //# sourceMappingURL=tunnel.d.ts.map