import type { FileMemoryRepositoryOptions, MemoryGitSync, GitMemorySyncOptions, MemoryProjectFileBinding, MemoryRepository, MemoryRuntimeState, MemorySyncResult } from './types.js'; export declare function memoryFilePath(scope: 'global' | 'project', projectKey?: string): string; export declare function projectMemoryFilePath(projectName: string): string; export declare function hashMemoryText(content: string): string; /** Derive one stable, safe project key from a canonical repository identity. */ export declare function deriveProjectKey(identity: string): string; export declare function emptyMemoryState(): MemoryRuntimeState; export declare class FileMemoryRepository implements MemoryRepository { private readonly root; private readonly git?; private readonly lockTimeoutMs; private readonly lockRetryMs; private readonly projectKey?; private readonly projectName?; constructor(root: string, options?: FileMemoryRepositoryOptions); projectFileBinding(): MemoryProjectFileBinding | undefined; readText(relativePath: string): Promise; writeText(relativePath: string, content: string): Promise; readState(): Promise; writeState(state: MemoryRuntimeState): Promise; withLock(operation: () => Promise): Promise; sync(): Promise; remote(): Promise; configureRemote(url: string): Promise; private resolve; } /** Git adapter for the dedicated memory repository; it never receives a project-repository path. */ export declare class GitMemorySync implements MemoryGitSync { private readonly root; private readonly remoteName; private readonly commitMessage; private readonly runCommand; constructor(root: string, options?: GitMemorySyncOptions); sync(): Promise; remote(): Promise; configureRemote(url: string): Promise; } //# sourceMappingURL=repository.d.ts.map