export declare const MAX_LINES = 2000;
export declare const MAX_BYTES: number;
/** @deprecated Use MAX_BYTES instead. Kept for backwards compatibility with tests. */
export declare const MAX_CHARS: number;
export interface TruncateResult {
    content: string;
    truncated: boolean;
    totalLines: number;
    keptLines: number;
}
/**
 * Truncate from the end — keep the first N lines.
 * Used by the read tool.
 */
export declare function truncateHead(content: string, maxLines?: number, maxBytes?: number): TruncateResult;
/**
 * Truncate from the beginning — keep the last N lines.
 * Used by the bash tool.
 */
export declare function truncateTail(content: string, maxLines?: number, maxBytes?: number): TruncateResult;
//# sourceMappingURL=truncate.d.ts.map