import { NamespaceStore } from '@struktoai/mirage-core/workspace/mount/namespace/store'; import type { NodeFields } from '@struktoai/mirage-core/workspace/mount/namespace/store'; /** * NamespaceStore backed by one `namespace.json` per workspace. * * The whole plane is one human-readable record * `{"nodes": {path: fields}, "user": ...}`: the namespace is bound to * the workspace, so it serializes as one JSON file, not per-node * files. Read-modify-writes take the record's lockfile so concurrent * local processes never lose a node upsert; the write itself stays * tmp-then-rename atomic, so readers never see a torn file. Mirrors * the Python DiskNamespaceStore byte-for-byte on disk. */ export declare class DiskNamespaceStore extends NamespaceStore { private readonly records; constructor(root: string); private state; private write; load(): Promise>; set(path: string, fields: NodeFields): Promise; delete(paths: readonly string[]): Promise; replaceAll(entries: Map): Promise; loadUser(): Promise; setUser(user: string): Promise; clear(): Promise; close(): Promise; } //# sourceMappingURL=disk.d.ts.map