/** * Entity Sync Service * * Syncs locally-extracted entities to the VasperaMemory cloud. * Handles batch uploads with rate limiting and error handling. */ import { LocalDatabase } from './local-db.js'; export interface EntitySyncResult { entitiesPushed: number; relationshipsPushed: number; filesSynced: number; errors: string[]; duration: number; } export interface CloudEntity { entity_type: string; entity_value: string; normalized_value: string; file_path?: string; line_number?: number; metadata?: Record; } export interface CloudRelationship { source_file: string; target_file: string; relationship_type: string; strength: number; evidence?: string; } /** * Sync locally-extracted entities to cloud */ export declare function syncEntitiesToCloud(db: LocalDatabase, projectId: string, apiKey: string, serverUrl: string): Promise; /** * Check if cloud sync is available (has valid API key and project) */ export declare function checkCloudSyncAvailable(apiKey: string, serverUrl: string): Promise; /** * Get sync status summary */ export declare function getSyncStatus(db: LocalDatabase, projectId: string): { pendingFiles: number; syncedFiles: number; errorFiles: number; totalEntities: number; totalRelationships: number; }; //# sourceMappingURL=entity-sync.d.ts.map