import type { Memory } from '../memory/types.js';
export interface SyncedMemoryRecord {
    external_id: string;
    local_id: number;
    type: string;
    category: string;
    title: string;
    content: string;
    project: string | null;
    tags: string[];
    salience: number;
    scope: string;
    transferable: boolean;
    trust_score: number | null;
    sensitivity_level: string | null;
    source: string | null;
    metadata: Record<string, unknown>;
    cloud_excluded?: boolean;
    created_at: string;
    updated_at: string;
    deleted_at?: string | null;
}
export interface MemorySyncEnvelope {
    memories: SyncedMemoryRecord[];
    device: {
        device_id: string;
        device_name: string;
        platform: string;
    };
}
export declare function syncMemoryUpsertToCloud(memory: Memory): void;
export declare function syncMemoryDeleteToCloud(memory: Memory): void;
export declare function syncAllMemoriesToCloud(): Promise<{
    total: number;
    synced: number;
    failed: number;
}>;
