import type { Bash } from "../Bash.js"; export interface OutputMessage { type: "stdout" | "stderr"; data: string; timestamp: Date; } export declare class Command { readonly cmdId: string; readonly cwd: string; readonly startedAt: Date; exitCode: number | undefined; private bashEnv; private cmdLine; private env?; private explicitCwd; private signal?; private timeoutMs?; private abortController; private timeoutId; private externalAbortListener; private resultPromise; constructor(bashEnv: Bash, cmdLine: string, cwd: string, env?: Record, explicitCwd?: boolean, signal?: AbortSignal, timeoutMs?: number); private setupCancellation; private cleanupCancellation; private execute; logs(): AsyncGenerator; wait(): Promise; output(): Promise; stdout(): Promise; stderr(): Promise; kill(): Promise; } export interface CommandFinished extends Command { exitCode: number; }