import type { ToolCall, ToolResult } from "../types.js"; export declare function saveToolOutput(call: ToolCall, output: string): Promise; export declare function summarizeOutput(output: string, maxChars?: number, opts?: { preferErrors?: boolean; }): { text: string; truncated: boolean; }; export declare function summarizeFetchOutput(output: string, maxChars: number, opts?: { preferErrors?: boolean; }): { text: string; truncated: boolean; }; export declare function failureSummaryLine(result: { ok: boolean; exitCode?: number | undefined; output?: string | undefined; }): string | undefined; export declare const PASSTHROUGH_CAP_CHARS_LEGACY = 400000; export declare function fsPassthroughCapChars(): number; export declare function formatToolContext(call: ToolCall, result: ToolResult): string;