import { GitSync } from '../git/sync.js'; /** * Manages shared memory sync. * * Personal mode: * memory/{project-hash}/*.enc — encrypted memory files * * Team mode: * memory/shared/{project-hash}/*.enc — team-shared memories * memory/{username}/{project-hash}/*.enc — personal memories */ export declare class MemorySync { private sync; private key; private username; private isTeam; constructor(sync: GitSync, key: Buffer, username: string, isTeam: boolean); /** * Hash a project path to a stable directory name. */ private projectHash; /** * Get the repo-relative base path for memories. */ private basePath; /** * Push a local memory directory to the sync repo. * Reads all .md files from the local memory dir, encrypts, and stores them. */ push(projectPath: string, localMemoryDir: string, shared?: boolean): Promise; /** * Pull memories from sync repo to a local directory. * Decrypts and writes .md files. */ pull(projectPath: string, localMemoryDir: string, shared?: boolean): Promise; /** * In team mode: pull shared memories from all team members. * Returns combined list of memory files. */ pullTeamShared(projectPath: string, localMemoryDir: string): Promise; } //# sourceMappingURL=sync.d.ts.map