/** * rgui render — terminal-preview node content. * * A full-content `GraphNode.draw` hook that renders a node as a miniature * TUI/console card: a title bar with a status dot and monospace title, and a * dark terminal body showing the newest preview lines bottom-anchored (like a * live terminal tail). This is the same visual contract as the agent-yes * console's agent nodes, extracted here so any federation consumer renders a * `renderHints.preview: { kind: "terminal" }` node identically. * * The palette is intentionally theme-independent: a terminal reads as a dark * surface in both light and dark chrome (matching agent-yes.com/r/). */ export interface TerminalPreview { kind: "terminal"; /** title-bar text; falls back to the node title drawn by the host */ title?: string; /** status dot: active | needs_input | stuck | exited | idle | (custom) */ status?: string; /** newest-last body lines; the tail is kept visible when space is short */ lines?: string[]; } export declare const TERMINAL_STATUS_COLOR: Record; /** Build a `GraphNode.draw` hook for one terminal preview. */ export declare function terminalPreviewDraw(preview: TerminalPreview): (ctx: CanvasRenderingContext2D, rect: { width: number; height: number; }, view?: { k: number; }) => void; //# sourceMappingURL=terminalPreview.d.ts.map