import { type Diagnostic, type Graph, type NodeId } from '../graph.js'; import type { ModifyContext } from './context.js'; export interface ApplyPatchSpec { name: string; range?: string; } export interface ApplyPatchResult { graph: Graph; patched: Array<{ from: NodeId; to: NodeId; }>; recentlyAdded: Set; recentlyOrphaned: Set; unresolved: Diagnostic[]; } export declare function applyPatch(graph: Graph, spec: ApplyPatchSpec, patchBytes: Uint8Array | string, _context: ModifyContext, options?: { onDiagnostic?: (d: Diagnostic) => void; }): Promise;