export interface ReadTrailerFacts { truncated: boolean; totalLines?: number; nextOffset?: number; } export interface NormalizedReadResult { text: string; notes: string[]; truncated: boolean; changed: boolean; anchored?: string; /** True file line count when the client trailer reported one. */ totalLines?: number; /** Offset the client told the model to resume from. */ nextOffset?: number; } /** * Normalize a client tool result that may be a Read render. * Unrecognized text passes through unchanged (changed: false). */ export declare function normalizeReadResultText(raw: string): NormalizedReadResult; /** True when a tool name looks like a read-role tool. */ export declare function isReadRoleTool(name: string): boolean; export declare function isEditRoleTool(name: string): boolean; /** True when a tool name is a search-role tool (grep/glob and aliases). */ export declare function isSearchRoleTool(name: string): boolean;