import type { ToolFailureClass } from '../../trace/types.js'; export interface GrepSettleResult { content: string; isError?: boolean; truncated?: boolean; failureClass?: ToolFailureClass; } export type RgExit2Result = GrepSettleResult & { isError: true; }; export declare function classifyRgExit2(stderr: string, searchPath: string): RgExit2Result;