import { PluginManifest } from '../types.js'; /** * BrainPortability — export and import full brain state. * * Use cases: * 1. Backup brain before major refactors * 2. Migrate brain between machines * 3. Share brain state with team members * 4. Restore brain after clean install * 5. Transfer learning across projects */ export declare class BrainPortability { private exportDir; private projectDir; private storeDir; constructor(projectDir?: string, customDir?: string); /** * Export full brain state to a JSON file. * Captures all module states for complete portability. */ exportBrain(options?: { includePatterns?: boolean; includeLearning?: boolean; includeConsensus?: boolean; includeRecall?: boolean; includeCollective?: boolean; includeTurbo?: boolean; includeKnowledge?: boolean; includeSwarm?: boolean; includeEvolution?: boolean; plugins?: PluginManifest[]; }): Promise<{ filePath: string; sizeBytes: number; checksum: string; }>; /** * Import brain state from an export file. * Restores all module states from the export. */ importBrain(filePath: string, options?: { merge?: boolean; skipModules?: string[]; }): Promise<{ imported: string[]; skipped: string[]; errors: string[]; }>; /** * List all available exports. */ listExports(): Array<{ fileName: string; filePath: string; sizeBytes: number; exportedAt: Date; projectName: string; version: string; }>; /** * Verify an export file's integrity. */ verifyExport(filePath: string): { valid: boolean; version: string; projectName: string; moduleCount: number; totalSizeKB: number; errors: string[]; }; /** * Delete an export file. */ deleteExport(filePath: string): boolean; private readModuleState; private writeModuleState; private mergeModuleState; private deepMerge; private dateReplacer; } //# sourceMappingURL=brain-portability.d.ts.map