import type { AiToolCtx, ToolHandler } from './spi/tool.js'; /** JSON-only component output, structurally shared with the optional GenUI core. */ export interface ComponentPresentation

> { component: string; props: P; version: number; fallbackText: string; } export type ToolResultPresentation = ComponentPresentation | readonly ComponentPresentation[] | undefined; /** Presentation must never turn a completed domain write into a retryable tool failure. */ export declare function presentToolResult(toolName: string, handler: ToolHandler, output: unknown, ctx: AiToolCtx): Promise; //# sourceMappingURL=tool-result-presentation.d.ts.map