import { PassThrough } from "stream"; import xterm from "@xterm/headless"; declare const Terminal: typeof xterm.Terminal; type Terminal = InstanceType; export interface Process { pid: string; status: "running" | "terminated"; command: string; cwd: string; env: Record; tty: boolean; createdAt: Date; exitCode?: number; stdinStream: PassThrough; stdoutStream: PassThrough; stderrStream: PassThrough; stdout: string; stderr: string; terminal?: Terminal; promise?: Promise; getTerminalBuffer(): string; } export interface SpawnOptions { command: string; cwd?: string; env?: Record; tty?: boolean; background?: boolean; timeoutMs?: number; } export interface ProcessInfo { pid: string; command: string; status: "running" | "terminated"; exitCode?: number; cwd: string; tty: boolean; createdAt: string; } export interface SpawnResult { pid: string; status: "running" | "terminated"; exitCode?: number; stdout: string; stderr: string; } export declare const DEFAULT_TIMEOUT_MS = 10000; export declare const MAX_TIMEOUT_MS = 60000; export declare const OUTPUT_TRUNCATE = 8196; export declare const TERMINAL_COLS = 120; export declare const TERMINAL_ROWS = 30; export {}; //# sourceMappingURL=process.d.ts.map