/** * Convert a value to MCP structuredContent format. * Returns Record or undefined (matching MCP's structuredContent type). * Primitives and arrays are wrapped in { value: ... }. */ export declare function toStructuredContent(value: unknown): Record | undefined; /** MCP-compatible text resource content */ export type TextContent = { uri: string; mimeType?: string; text: string; }; /** MCP-compatible blob resource content */ export type BlobContent = { uri: string; mimeType?: string; blob: string; }; /** MCP-compatible resource content (text or blob) */ export type ResourceContent = TextContent | BlobContent; /** * Build a resource content item for MCP ReadResourceResult format. * Handles both text and binary (blob) content. * * @param uri - The resource URI * @param content - The content to serialize (string, Buffer, object, etc.) * @param mimeType - Optional MIME type override */ export declare function buildResourceContent(uri: string, content: unknown, mimeType?: string): ResourceContent; //# sourceMappingURL=content.utils.d.ts.map