/** * 관계 그래프 변경 (추가/삭제/신뢰도 갱신/배치) */ import Database from 'better-sqlite3'; import type { AddRelationOptions, RelationMetadata } from '../../../shared/types/relation-graph.js'; import type { RelationType } from '../../../shared/types/relation.js'; import type { RelationGraphCache } from './relation-graph-cache.js'; import type { RelationGraphCycleDetector } from './relation-graph-cycle-detector.js'; export declare class RelationGraphMutations { private db; private cache; private cycleDetector; constructor(db: Database.Database, cache: RelationGraphCache, cycleDetector: RelationGraphCycleDetector); /** * 관계 추가 */ addRelation(sourceId: string, targetId: string, relationType: RelationType, options?: AddRelationOptions): Promise; /** * 관계 삭제 */ removeRelation(sourceId: string, targetId: string, relationType: RelationType): Promise; /** * 신뢰도 갱신 */ updateConfidence(sourceId: string, targetId: string, relationType: RelationType, newConfidence: number, reason?: string): Promise; /** * 배치 관계 추가 */ addRelationsBatch(relations: Array<{ source_id: string; target_id: string; relation_type: RelationType; confidence?: number; metadata?: RelationMetadata; }>): Promise<{ insertedIds: number[]; failed: Array<{ source_id: string; target_id: string; relation_type: RelationType; error: string; }>; total: number; success: number; failedCount: number; }>; private addRelationInternal; private handleRelationAddError; private validateRelationInput; private checkForCyclicRelation; private prepareMetadata; private findExistingRelation; private handleExistingRelation; private insertNewRelation; private updateCyclicFlag; } //# sourceMappingURL=relation-graph-mutations.d.ts.map