import type { ToolHandlerContext } from '../types.js'; export interface PatchFileChange { path: string; expected_hash?: string; edits?: Array<{ old: string; new: string; }>; content?: string; } export interface ValidationError { path: string; error: string; detail?: string; } export interface ValidationResult { valid: boolean; errors: ValidationError[]; fileContents: Map; } export declare function sha256Hex(content: string): string; export declare function validatePatchChanges(changes: PatchFileChange[], resolveBase: string, context?: ToolHandlerContext): Promise;