/** * Run a command through the OS shell (so `npm.cmd` / `.cmd` shims work on * Windows), capturing the full combined output plus a bounded tail. * * `spawn(cmd, { shell: true })` uses `cmd.exe /d /s /c` on Windows and * `/bin/sh -c` elsewhere — one call site, no bash assumption. * * @module core/tasks/run-shell */ /** Lines of combined output kept in {@link ShellResult.tail}. */ export declare const TAIL_LINES = 50; export interface ShellResult { code: number; /** Last {@link TAIL_LINES} lines of combined output. */ tail: string; /** Full combined stdout+stderr (truncated from the front past 4 MB). */ output: string; } /** Last `n` lines of a blob (trailing blank lines dropped). */ export declare function tailLines(output: string, n?: number): string; export declare function runShell(cmd: string, cwd: string, timeoutMs?: number): Promise; /** * A task's `Test:` value is a shell command unless it is a BDD sentence * (legacy `**Test**: Given … → When … → Then …`) or empty/`-`. */ export declare function isShellCommand(test: string | undefined): test is string; //# sourceMappingURL=run-shell.d.ts.map