export declare const DEFAULT_MAX_LINES = 2000;
export declare const DEFAULT_MAX_BYTES: number;
export declare const GREP_MAX_LINE_LENGTH = 500;
export interface TruncationResult {
    content: string;
    truncated: boolean;
    truncatedBy: "lines" | "bytes" | null;
    totalLines: number;
    totalBytes: number;
    outputLines: number;
    outputBytes: number;
    lastLinePartial: boolean;
    firstLineExceedsLimit: boolean;
    maxLines: number;
    maxBytes: number;
}
export interface TruncationOptions {
    maxLines?: number;
    maxBytes?: number;
}
export declare function formatSize(bytes: number): string;
/**
 * Truncate from head - keep beginning of content
 */
export declare function truncateHead(content: string, options?: TruncationOptions): TruncationResult;
/**
 * Truncate from tail - keep end of content (like tail command)
 */
export declare function truncateTail(content: string, options?: TruncationOptions): TruncationResult;
/**
 * Truncate long lines to max length
 */
export declare function truncateLine(content: string, maxLen?: number): {
    text: string;
    wasTruncated: boolean;
};
