/** * SSH fallback for reaching a box that has no SSM agent (Lightsail). * * Node-only: spawns `ssh` and writes a temporary key file. Not importable from a * Next.js edge runtime, which is why it lives behind * `@indigoai-us/hq-cloud/outposts/node` rather than the portable entry point. */ import type { OutpostSshAccess } from "./types.js"; /** Outcome of a one-shot SSH invocation. */ export interface SshExecResult { stdout: string; stderr: string; /** * The remote process exit code, or `null` when `ssh` itself could not run * (e.g. the binary is missing) — in which case `error` explains why. */ exitCode: number | null; error?: string; } /** * Run `command` on the box over SSH using vended access details. * * Writes the private key to a locked-down temp file, runs a non-interactive * `ssh`, and returns the streams. The key file and a throwaway `known_hosts` are * always cleaned up, and the key is never printed — it is a credential vended for * this one call. */ export declare function execViaSsh(access: OutpostSshAccess, command: string): SshExecResult; //# sourceMappingURL=ssh.d.ts.map