/** * ID-based diagram operations * Copied from lib/utils.ts to avoid cross-package imports */ export interface DiagramOperation { operation: "update" | "add" | "delete"; cell_id: string; new_xml?: string; } export interface OperationError { type: "update" | "add" | "delete"; cellId: string; message: string; } export interface ApplyOperationsResult { result: string; errors: OperationError[]; } /** * Apply diagram operations (update/add/delete) using ID-based lookup. * This replaces the text-matching approach with direct DOM manipulation. * * @param xmlContent - The full mxfile XML content * @param operations - Array of operations to apply * @returns Object with result XML and any errors */ export declare function applyDiagramOperations(xmlContent: string, operations: DiagramOperation[]): ApplyOperationsResult; //# sourceMappingURL=diagram-operations.d.ts.map