/** * Component for displaying bash command execution with streaming output. */ import { Container, type TUI } from "@gajae-code/tui"; import type { TruncationMeta } from "../../tools/output-meta"; export declare class BashExecutionComponent extends Container { #private; private readonly command; constructor(command: string, ui: TUI, excludeFromContext?: boolean); /** * Set whether the output is expanded (shows full output) or collapsed (preview only). */ setExpanded(expanded: boolean): void; invalidate(): void; appendOutput(chunk: string): void; setComplete(exitCode: number | undefined, cancelled: boolean, options?: { output?: string; truncation?: TruncationMeta; }): void; render(width: number): string[]; /** * Get the raw output for creating BashExecutionMessage. */ getOutput(): string; /** * Get the command that was executed. */ getCommand(): string; /** * Record that this execution's message reached session state, so a transcript * rebuild renders it from the session instead of keeping this live block parked. */ markResultPersisted(): void; /** Whether the session already holds this execution's message. */ hasPersistedResult(): boolean; }