import type { Entity, Relationship, Contradiction, FileRecord, Project, EntityQuery, GraphStats, IntegrityResult, GraphStore } from '@cortex/core'; export interface FileStatusBreakdown { ingested: number; failed: number; skipped: number; pending: number; } export interface FailedFile { path: string; relativePath: string; parseError: string; } export interface EntityBreakdown { type: string; count: number; avgConfidence: number; } export interface RelationshipBreakdown { type: string; count: number; } export interface ContradictionBreakdown { active: number; resolved: number; dismissed: number; highSeverity: number; mediumSeverity: number; lowSeverity: number; } export interface TopContradiction { id: string; severity: string; description: string; entityA: string; entityB: string; } export interface ReportData { generatedAt: string; fileStatus: FileStatusBreakdown; failedFiles: FailedFile[]; entityBreakdown: EntityBreakdown[]; supersededCount: number; relationshipBreakdown: RelationshipBreakdown[]; contradictions: ContradictionBreakdown; topContradictions: TopContradiction[]; tokenEstimate: { totalInput: number; totalOutput: number; }; } export interface SQLiteStoreOptions { dbPath?: string; walMode?: boolean; backupOnStartup?: boolean; } export declare class SQLiteStore implements GraphStore { private db; private dbPath; constructor(options?: SQLiteStoreOptions); private migrate; private backupSync; close(): void; createEntity(entity: Omit): Promise; getEntity(id: string): Promise; updateEntity(id: string, updates: Partial): Promise; deleteEntity(id: string, soft?: boolean): Promise; findEntities(query: EntityQuery): Promise; createRelationship(rel: Omit): Promise; getRelationship(id: string): Promise; getRelationshipsForEntity(entityId: string, direction?: 'in' | 'out' | 'both'): Promise; deleteRelationship(id: string): Promise; deleteBySourcePath(pathPrefix: string): { deletedEntities: number; deletedRelationships: number; deletedFiles: number; }; resetDatabase(): void; pruneSoftDeleted(): { deletedEntities: number; deletedRelationships: number; }; upsertFile(file: Omit): Promise; getFile(path: string): Promise; getFilesByProject(projectId: string): Promise; createProject(project: Omit): Promise; getProject(id: string): Promise; listProjects(): Promise; createContradiction(contradiction: Omit): Promise; findContradictions(query?: { status?: Contradiction['status']; entityId?: string; limit?: number; }): Promise; updateContradiction(id: string, update: { status: Contradiction['status']; resolvedAction?: Contradiction['resolvedAction']; resolvedAt?: string; }): Promise; searchEntities(text: string, limit?: number): Promise; semanticSearch(_embedding: Float32Array, _limit?: number): Promise; getStats(): Promise; getReportData(): ReportData; backup(): Promise; integrityCheck(): Promise; getGraphData(options?: { projectId?: string; limit?: number; }): { nodes: Array<{ id: string; name: string; type: string; confidence: number; sourceFile: string; }>; edges: Array<{ id: string; source: string; target: string; type: string; confidence: number; }>; }; } //# sourceMappingURL=sqlite-store.d.ts.map