import type { ReactNode } from "react"; import { type JSONValue, type Tool, type ToolInvocation } from "ai"; type Streamable = ReactNode | Promise | JSONValue; export type Renderer> = (...args: T) => AsyncGenerator; export type CoderTool = Omit & { generate?: Renderer; renderTitle?: (part: ToolInvocation) => ReactNode; render?: (part: ToolInvocation) => ReactNode; execute?: Tool["execute"]; }; export declare function defineTool(params: CoderTool): CoderTool; export {};