/** * serverExec — single routing primitive for shell commands issued by scanfixes. * * Usage from a scanfix: * import { serverExec } from '../../utils/server-exec.js'; * const out = serverExec(stage, 'docker ps -q -f name=' + name); * * Routing: * - stage === 'dev' → local execSync * - stage === 'staging' | 'prod' → tunnelExec via the per-stage tunnel * handle cached in ssh-tunnel.ts. Throws * if no tunnel is cached (in practice * impossible because runStageChain opens * the tunnel on stage entry). * * Returns trimmed stdout. Throws on non-zero exit (both paths). */ import type { Stage } from '../types/index.js'; export declare function serverExec(stage: Stage, cmd: string): string; //# sourceMappingURL=server-exec.d.ts.map