import type { ToolViewCtx } from '@conciv/protocol/tool-view-types'; import type { ToolCallPart, ToolResultPart } from '@conciv/protocol/chat-message-types'; import type { JSX } from 'solid-js'; import { toolStatus, type ToolStatus } from './tool-status.js'; export type ToolRowMark = 'pass' | 'warn' | 'fail' | 'run' | NonNullable; export type ToolRowProps = { part: ToolCallPart; result: ToolResultPart | undefined; ctx: ToolViewCtx; }; export type ToolRowProjection = { mark: ToolRowMark; label: string; target: string; meta?: string; block?: () => JSX.Element; }; export declare function rowMarkOf(part: ToolCallPart, result: Parameters[1]): ToolRowMark; export declare function countLabel(count: number, one: string, other: string): string; export declare function shortToolLabel(name: string): string; export declare function namedArgument(part: ToolCallPart): string | undefined; export declare function primaryArgument(part: ToolCallPart): string; export declare function genericRowProjection(source: ToolRowProps): ToolRowProjection; export type EmbeddedCardHeader = { title: string; meta?: string; status?: ToolStatus; }; export declare function headerRowProjection(header: EmbeddedCardHeader, source: ToolRowProps): ToolRowProjection; //# sourceMappingURL=tool-row.d.ts.map