export type { SpawnCallback, SpawnError, SpawnOptions, SpawnResult } from 'cross-spawn-cb'; import type { SpawnError, SpawnResult } from 'cross-spawn-cb'; export type SessionOptions = { header?: string; showStatusBar?: boolean; interactive?: boolean; }; export type ProcessOptions = { group?: string; expanded?: boolean; }; export type TerminalCallback = (error?: SpawnError, result?: SpawnResult) => void; export declare const LineType: { readonly stdout: 1; readonly stderr: 2; }; export type Line = { type: (typeof LineType)[keyof typeof LineType]; text: string; }; export type State = 'running' | 'error' | 'success'; import type { TerminalBuffer } from './lib/TerminalBuffer.js'; export type ChildProcess = { id: string; group?: string; title: string; state: State; lines: Line[]; /** @internal Virtual terminal for ANSI interpretation */ terminalBuffer?: TerminalBuffer; expanded?: boolean; /** @internal Per-process scroll navigation state */ scrollNav?: import('./state/Navigator.js').Navigator; };