/** * Port of the forgecode truncation helpers. * * These run inside `tool.execute.after` to trim the output that opencode would * otherwise pipe straight back into the model context. The goal is parity with * forgecode's defaults, not byte-perfect equivalence. * * - shell / bash → head+tail line clipping with per-line clipping * - search / grep → cap total lines * - fetch → cap total characters */ declare const DEFAULTS: { shell: { prefixLines: number; suffixLines: number; maxLineLength: number; }; search: { maxLines: number; maxLineLength: number; }; fetch: { maxChars: number; }; }; export declare function truncateShell(content: string, opts?: Partial): string; export declare function truncateSearch(content: string, opts?: Partial): string; export declare function truncateFetch(content: string, opts?: Partial): string; /** * Routes based on the tool name. Unknown tools are returned unchanged. */ export declare function truncateForTool(tool: string, content: string): string; export {}; //# sourceMappingURL=truncation.d.ts.map