import React from 'react'; import type { ToolRow } from '../../dsh-adapter/channel.js'; import type { ToolBackground } from '../../tuiDisplayPrefs.js'; import type { Theme } from '../../theme.js'; import type { ClickEvent } from '../../ink/events/click-event.js'; type Props = { tool: ToolRow; /** Adds the top margin between messages (CC: addMargin). */ addMargin: boolean; /** Ctrl+O verbose: show full args/result instead of previews. */ verbose: boolean; /** Message-selection mode highlight. */ isSelected?: boolean; /** Row expanded on its own (persistent hover-grey background, CC). */ isExpanded?: boolean; /** * Mouse click (fullscreen): toggles the row's expansion — same action as * clicking other transcript rows. Also makes the `(ctrl+o to expand)` * hint actionable with the mouse. */ onClick?(event: ClickEvent): void; /** * Trajectory pointer, rendered as one more `⎿` line under a failed call. * * It appears on the NEWEST unseen failure only, so a session with a dozen * failed calls still shows exactly one pointer — the moment of failure is * where the trajectory is worth mentioning, and mentioning it twelve times * is worth less than mentioning it once. */ footnote?: string; /** Diff presentation preference; `auto` picks by terminal width. */ diffLayout?: 'auto' | 'split' | 'unified'; /** Background treatment for the ordinary, unselected tool card surface. */ toolBackground?: ToolBackground; /** * Click-to-act (fullscreen): opens the file-action menu for the tool's * file path. When provided, the path in the card header (and diff path * rows) renders underlined and clickable; the click stops propagation so * the row's own fold-toggle does not fire. */ onOpenFile?: (path: string) => void; /** * Terminal-card header folding (settings `dsh-tui.foldTerminalCommand`): * collapsed cards keep the command title's first source line plus a * `+N lines` hint; verbose/expanded cards render the full title. */ foldTerminalCommand?: boolean; /** * Smooth streaming reveal (settings `dsh-tui.smoothStreaming`): the card * BODY (diff hunks / write content — model-authored prose, not tool * output) paints through an even ~30fps line reveal when it first appears, * instead of one jarring block. Only the pending CALL view animates; the * settled result view paints complete (real output is progress, not * prose), and so do replayed cards. */ smoothReveal?: boolean; /** Live-arrived row (channel `fresh`): gates reveal participation — * replayed cards must paint complete. */ fresh?: boolean; /** Reveal version supplied by MessageList to avoid one store subscriber per card. */ revealVersion?: number; }; export declare function toolNameColor(raw: string): keyof Theme; /** * Tool-call card: `● Edit /path` header with a blinking status dot, then the * structured body under a ` ⎿ ` gutter — diff hunks in red/green, terminal * output, read content — instead of the raw result dump (mirroring Claude Code's `AssistantToolUseMessage.tsx` + the dsh-tools presentation views the * channel captures per call). */ export declare function AssistantToolUseMessage({ tool, addMargin, verbose, isSelected, isExpanded, onClick, footnote, diffLayout, toolBackground, onOpenFile, foldTerminalCommand, smoothReveal, fresh, revealVersion, }: Props): React.ReactNode; export {}; //# sourceMappingURL=AssistantToolUseMessage.d.ts.map