import type { MemoryId } from '../../types/ids/index.js'; import type { CreateMemoryParams, MemoryContent, MemoryIndexEntry, MemoryRecord, MemorySearchParams, MemorySearchResult, MemoryStore, UpdateMemoryParams } from '../../types/memory/index.js'; import { type Logger } from '../../utils/logger.js'; import { InMemoryMemoryIndex } from './index.js'; export interface DiskMemoryStoreConfig { baseDir: string; /** Exact memory directory; defaults to `baseDir/memory`. Hosts can partition by workspace. */ directory?: string; logger?: Logger; /** Maximum wait for another process's operation; default 10 seconds. Never breaks stale locks. */ lockTimeoutMs?: number; } export declare class DiskMemoryStore implements MemoryStore { private readonly baseDir; private readonly log; private readonly lockTimeoutMs; private readonly index; private location?; private readonly records; private readonly indexRecords; constructor(config: DiskMemoryStoreConfig); private get contentDir(); private storageLocation; private contentPath; private reloadIndex; private withAuthoritativeIndex; private readContent; private writeIndex; create(params: CreateMemoryParams): Promise<{ entry: MemoryIndexEntry; content: MemoryContent; }>; get(id: MemoryId): Promise; getRecord(id: MemoryId): Promise; update(id: MemoryId, updates: UpdateMemoryParams): Promise; delete(id: MemoryId): Promise; list(params?: MemorySearchParams): Promise; getIndex(): InMemoryMemoryIndex; } //# sourceMappingURL=disk.d.ts.map