export interface ExecResult { code: number | null; stdout: string; stderr: string; timedOut: boolean; } /** Keep only the last `max` characters of a string. */ export declare function tail(text: string, max?: number): string; /** * Run `command` in `cwd` via a shell, capturing stdout/stderr. On Windows we * use `shell: true` so npm scripts / .cmd shims resolve. Resolves (never * rejects) with the exit code and captured output; kills the process on timeout. */ export declare function runCommand(command: string, cwd: string, timeoutMs?: number): Promise;