import type { OutputLine } from "@skaile/workspaces"; import type { TelemetryLogEntry } from "./telemetry.js"; /** * Render a single OutputLine to an ANSI-colored string for terminal display. * * Each `OutputLine` variant is mapped to a distinct colour: user input (cyan/bold), * agent text (plain), tool calls (blue italic), questions (yellow), errors (red), * status/system messages (dim italic), subagent lifecycle (blue/green italic), and * separator lines (dim dashes). Returns an empty string for unrecognised variants. * * @param line - The typed output line to render. * @returns ANSI-coloured string ready for terminal output. * * @docLink packages/tui/concepts#repl-renderer */ export declare function renderLine(line: OutputLine): string; /** * Render a telemetry log entry to an ANSI string, or null to suppress. * * Formats `generation` entries with model name, token counts, cost, and duration; * `span_end` entries for `tool_call` and `agent_turn` kinds; and `trace_start` / * `trace_end` lifecycle entries. All output is styled dim for visual de-emphasis. * Returns `null` for entry kinds that should not appear in the log panel. * * @param entry - The structured telemetry event to render. * @returns Dim ANSI string, or `null` if the entry should be suppressed. * * @docLink packages/tui/concepts#repl-renderer */ export declare function renderLog(entry: TelemetryLogEntry): string | null; //# sourceMappingURL=repl-renderer.d.ts.map