import child_process from 'node:child_process'; /** * Run an untrusted (submission-derived) command with a timeout. When a judge server delegates * untrusted execution via `EXERCODE_SANDBOX_USER` (see `sandboxUser.ts`), the whole command, * including `timeout`, runs as the sandbox user so the timer can signal the sandboxed process; a * harness-owned watchdog enforces the deadline even if the submission kills its own `timeout`, and * leftover sandbox processes (e.g. daemonized children) are killed after every run. */ export declare function spawnSyncWithTimeout(command: string, args: readonly string[], options: child_process.SpawnSyncOptionsWithStringEncoding, timeoutSeconds: number): child_process.SpawnSyncReturns & { timeSeconds: number; memoryBytes: number; };