import type { ImageContent } from "@oh-my-pi/pi-ai"; import type { EvalLanguage, EvalStatusEvent, EvalView } from "@oh-my-pi/pi-tui/tools/eval"; /** Kernel-defined tool metadata exposed to task subagents. */ export interface EvalToolDescriptor { name: string; description: string; parameters: Record; language: EvalLanguage; } /** Result of invoking a kernel-defined tool. */ export type EvalToolInvokeResult = { ok: true; value: unknown; } | { ok: false; error: string; }; /** Image metadata accepted at the untyped JS/Python display boundary. */ export declare function evalImageMetadata(value: unknown): Pick; /** * Non-text output of an eval cell, from either backend: * - an image, sent to the model and shown to the user; * - a `view`: a pretty rendering of `text` the cell printed, for the user only * (the model sees `text` in the output stream); * - a helper `status` event for the UI. */ export type EvalDisplayOutput = ImageContent | { type: "view"; text: string; view: EvalView; } | { type: "status"; event: EvalStatusEvent; };