/**
 * Memory Bridge — external agent memory synchronization
 *
 * Provides bidirectional memory sync between Nexus Prime and external agent instances.
 * Uses chunked manifest exports by default while remaining backward compatible with
 * the older single-file bundle format.
 */
import { MemoryEngine, type MemoryExportOrigin, type MemoryImportResult } from './memory.js';
export interface MemoryBridgeConfig {
    memoryBridgeDir?: string;
    autoSync?: boolean;
}
export interface MemoryBridgeExportManifest {
    formatVersion: number;
    exportedAt: number;
    scope?: 'session' | 'project' | 'user' | 'promoted' | 'shared';
    bundleVersion: number;
    schemaVersion?: string;
    origin?: MemoryExportOrigin;
    itemCount: number;
    chunkCount: number;
    chunks: Array<{
        file: string;
        itemCount: number;
    }>;
}
export interface MemoryBridgeSyncState {
    lastSync: number;
    lastDirection: string;
    lastPath: string;
    lastItemCount: number;
    lastAdded: number;
    lastUpdated: number;
    lastSkipped: number;
    lastQuarantined: number;
    manifestPath?: string;
}
export interface MemoryBridgeSyncToResult {
    success: boolean;
    itemCount: number;
    path: string;
    manifestPath?: string;
    chunkCount?: number;
    bundleVersion?: number;
}
export interface MemoryBridgeSyncFromResult extends MemoryImportResult {
    success: boolean;
    errors: string[];
    path?: string;
    manifestPath?: string;
}
export declare class MemoryBridge {
    private memoryEngine;
    private bridgeDir;
    private syncStatePath;
    constructor(memoryEngine: MemoryEngine, config?: MemoryBridgeConfig);
    getBridgeDir(): string;
    syncTo(targetDir: string, options?: {
        scope?: 'session' | 'project' | 'user' | 'promoted' | 'shared';
        chunkSize?: number;
    }): MemoryBridgeSyncToResult;
    syncFrom(sourceDir: string): Promise<MemoryBridgeSyncFromResult>;
    private resolveImportTarget;
    private loadBundle;
    private updateSyncState;
    private loadSyncState;
    getSyncState(): MemoryBridgeSyncState;
}
