import { type Diagnostic, type Graph, type NodeId } from '../graph.js'; import type { ModifyContext } from './context.js'; export interface ReplaceVersionSelector { name: string; fromRange?: string; } export interface ReplaceVersionResult { graph: Graph; added: NodeId[]; removed: NodeId[]; replaced: Array<{ from: NodeId; to: NodeId; }>; recentlyAdded: Set; recentlyOrphaned: Set; unresolved: Diagnostic[]; } export interface ReplaceVersionOptions { context?: ModifyContext; onDiagnostic?: (d: Diagnostic) => void; } export declare function replaceVersion(graph: Graph, selector: ReplaceVersionSelector, toRange: string, context: ModifyContext, options?: { onDiagnostic?: (d: Diagnostic) => void; }): Promise;