/** * Shared output truncation for batch read, rg, and bash results. * * Applies limits in order: per-line bytes → total lines → total bytes. */ interface TruncateOutputOptions { maxLines?: number; maxBytes?: number; maxBytesPerLine?: number; } export interface TruncateOutputResult { text: string; truncated: boolean; longLinesTruncated: number; truncatedLines: boolean; truncatedBytes: boolean; totalLines: number; totalBytes: number; } /** Truncate a single line to maxBytes (UTF-8 safe). */ export declare function truncateLineBytes(line: string, maxBytes: number): { line: string; truncated: boolean; originalBytes: number; }; /** Truncate multi-line tool output with per-line, line-count, and byte caps. */ export declare function truncateOutput(text: string, options?: TruncateOutputOptions): TruncateOutputResult; export declare function truncateBashOutputText(text: string, maxBytes?: number, maxLines?: number): string; export declare function truncateRgOutputText(text: string): TruncateOutputResult; export {}; //# sourceMappingURL=truncate-output.d.ts.map