import { ToolEntry } from "../../lib/sessionModel.mjs"; import { ToolMessageRenderProps, ToolOutputDescriptor, WebPluginSlotProps } from "@agimon-ai/po-core/web"; import { ReactNode } from "react"; //#region src/web/features/session/ToolCard.d.ts /** * Whether a call's result carries something to look at: an image, a video, or an HTML widget (an MCP App's `ui://` * resource). It also looks inside the calls a tool made for the agent, such as exec's, since those render nested. * Bounded, because it runs on every grouped row. */ export declare function hasVisualOutput(entry: ToolEntry): boolean; /** Pure, opt-in collection. Existing message rendering never calls this or mounts a second output. */ export declare function toolOutputDescriptors(entry: ToolEntry, slotProps: WebPluginSlotProps, statuses: Readonly>): readonly ToolOutputDescriptor[]; /** Collects one-line summaries without mounting the tool card. */ export declare function toolActivitySummaries(entry: ToolEntry, slotProps: WebPluginSlotProps, statuses: Readonly>): readonly string[]; type NestedCall = Parameters>[0]; /** * Another tool's own card for a call made on its behalf, with the call's recorded args and result. Null when no * plugin claims the tool. It gets no `renderTool` itself, so a card inside a card cannot nest further. It follows * the parent's `suppressOutputs`, since a view that lifts outputs out also lifts the nested ones. */ export declare function nestedToolCard(parent: ToolEntry, call: NestedCall, slotProps: WebPluginSlotProps, statuses: Readonly>, suppressOutputs?: boolean): ReactNode; /** * One tool call in the timeline. The plugin that registered the tool owns * the whole item through its `message` renderer, the web half of the TUI's * renderShell 'self'; the host only marks the row, catches a renderer that * throws, and stands in for a tool nobody claims. */ export declare const ToolCard: import("react").MemoExoticComponent<({ entry: shown, slotProps, statuses, suppressOutputs }: { entry: ToolEntry; slotProps: WebPluginSlotProps; statuses: Readonly>; suppressOutputs?: boolean; }) => import("react").JSX.Element>; //#endregion export {}; //# sourceMappingURL=ToolCard.d.mts.map