/** * Bounded preview line for a tool invocation's raw JSON arguments: the first * human-meaningful string among the well-known keys (command, path, query, …) * with a fallback to the bounded raw JSON. Shared by the tool card in the * transcript and the approval bar's command preview. Arguments longer than * {@link MAX_PARSE_CHARS} are never parsed: the preview is a display concern, * and a synchronous `JSON.parse` plus string copies of an unbounded model * payload must not run on the approval or projection paths. * * @module @deepseek-ai/dsh-code/render/tool-preview */ /** * Resolve one bounded preview for raw tool arguments. * @param args - raw JSON arguments string as the model produced it. * @param toolName - the tool the arguments belong to (fallback label). * @returns the preview line; empty when nothing useful resolves. */ export declare function toolArgumentsPreview(args: string, toolName: string): string; /** * Bounded prompt preview for delegation-style tools (`subagent`): the * `prompt` argument rendered as the card's second row, so the transcript * shows what the child agent was asked — not just its description label — * while it runs (Codex's SpawnAgent card preview). Anything else returns ''. * @param toolName - the tool the arguments belong to. * @param args - raw JSON arguments string as the model produced it. * @returns the one-line prompt preview, or '' when none applies. */ export declare function toolPromptPreview(toolName: string, args: string): string;