import type { DiffPayload } from '../../../utils/diff.js'; import type { PatchFileChange, ValidationError } from './patch-validate.js'; export interface PatchApplyResult { status: 'applied' | 'dry_run' | 'validation_failed' | 'partial_failure'; diff: string; structuredDiff?: DiffPayload; files_changed: Array<{ path: string; before_hash: string; after_hash: string; }>; errors: ValidationError[]; } export declare function applyPatch(changes: PatchFileChange[], fileContents: Map, resolveBase: string, dryRun: boolean): Promise;