export type Section = 'memories' | 'patterns' | 'decisions' | 'entities' | 'rules'; export interface BrainEntity { id: string; type?: string; created?: string; importance?: number; content?: string; [k: string]: unknown; } export interface ExportResult { path: string; sizeBytes: number; sectionCounts: Record; } export interface ImportResult { added: number; modified: number; skipped: number; errors: string[]; } export interface DiffResult { willAdd: string[]; willModify: string[]; willSkip: string[]; } export declare class MarkdownExport { /** Export selected brain sections to a single .shadow-brain.md file. */ exportBrain(project: string, opts?: { sections?: Section[]; outPath?: string; }): Promise; /** Parse a .shadow-brain.md and write entities back into the brain store. */ importBrain(mdPath: string, opts?: { merge?: 'replace' | 'addNew' | 'overwrite'; }): Promise; /** Preview what an import will do, without writing anything. */ diff(mdPath: string): Promise; private renderMarkdown; private parseMarkdown; private parseEntities; private loadSection; private readEntity; private writeEntity; private clearSection; } export declare function getMarkdownExport(): MarkdownExport; export declare function resetMarkdownExportForTests(): void; //# sourceMappingURL=markdown-export.d.ts.map