import type { Memory } from '../memory/types.js';
export interface SyncedGraphEntityRecord {
    external_id: string;
    local_id: number;
    name: string;
    type: string;
    aliases: string[];
    first_seen: string | null;
    memory_count: number;
}
export interface SyncedGraphTripleRecord {
    external_id: string;
    local_id: number;
    subject_external_id: string;
    predicate: string;
    object_external_id: string;
    source_memory_external_id: string | null;
    confidence: number | null;
    created_at: string | null;
}
export interface SyncedGraphMemoryEntityRecord {
    memory_external_id: string;
    entity_external_id: string;
    role: string;
}
export interface GraphSyncEnvelope {
    device: {
        device_id: string;
        device_name: string;
        platform: string;
    };
    entities: SyncedGraphEntityRecord[];
    triples: SyncedGraphTripleRecord[];
    memory_entities: SyncedGraphMemoryEntityRecord[];
    prune_memory_external_ids?: string[];
}
export declare function syncGraphForMemoryToCloud(memoryId: number): void;
export declare function syncGraphDeleteForMemoryToCloud(memory: Memory): void;
export declare function syncAllGraphToCloud(): Promise<{
    entities: number;
    triples: number;
    memoryEntities: number;
    syncedBatches: number;
    failedBatches: number;
}>;
