import { type Entity } from '@cortex/core'; import { type Router } from '@cortex/llm'; import type { SQLiteStore } from '@cortex/graph'; /** * Run P3 merge detection for each newly stored entity against existing graph * entities with similar names. Always routes to local provider — high-volume, * low-stakes task that should never hit cloud. * * Skipped entirely if no local provider is available. */ export declare function runMergeDetection(entities: Entity[], sourceFile: string, store: SQLiteStore, router: Router, mergeConfidenceThreshold: number): Promise; /** * Run P4 contradiction detection for each newly stored entity against existing * graph entities of the same type. Routes to cloud (Haiku) by default. * Skipped for restricted projects. Forced local for sensitive. * * Cost controls: * - contradictedFilePairs: skip LLM call once a contradiction is found for a file pair * - checkedEntityPairs: skip LLM call if this exact entity pair was already evaluated * (prevents cross-batch duplicates when files A and B both ingest in the same run) * - type constraint: only compare same-type entities (same as merge detection) * - search limit 5: matches merge detection limit */ export declare function runContradictionDetection(entities: Entity[], sourceFile: string, projectId: string, privacyLevel: 'standard' | 'sensitive' | 'restricted', store: SQLiteStore, router: Router, checkedEntityPairs?: Set): Promise; //# sourceMappingURL=post-ingest.d.ts.map