import type { ToolResultBlock, ToolResultContent } from './index.js'; /** * Normalize tool-result content to blocks. * * A plain string is the common case and stays first-class; this is the * adapter for drivers that want to walk blocks uniformly. */ export declare function toToolResultBlocks(content: ToolResultContent): readonly ToolResultBlock[]; /** * Flatten tool-result content to text. * * For drivers that cannot express non-text tool results, and for every * host-facing surface (transcript, compaction, UI) that reasons over * strings. Non-text blocks become a short, honest placeholder rather than * their base64 payload: dumping the bytes is what made `computer-use` * send megabytes of undecodable characters as text, and silently dropping * them would let the model believe it saw something it did not. */ export declare function toolResultToText(content: ToolResultContent): string; /** True when the content needs a driver that can carry non-text blocks. */ export declare function hasNonTextBlocks(content: ToolResultContent): boolean; //# sourceMappingURL=content.d.ts.map