import { Image, type ImageContent } from "./image.js"; import { Audio, type AudioContent } from "./audio.js"; import { File, type EmbeddedResource } from "./file.js"; export interface TextContent { type: "text"; text: string; } export type ContentBlock = TextContent | ImageContent | AudioContent | EmbeddedResource; type JsonPrimitive = string | number | boolean | null; export type JsonValue = JsonPrimitive | JsonObject | JsonValue[]; export type JsonObject = { [key: string]: JsonValue; }; export type ToolReturn = undefined | JsonPrimitive | JsonObject | Image | Audio | File | ContentBlock | Array; export declare function toContentBlocks(result: ToolReturn): ContentBlock[]; export {};