import { type BootstrapCapableStore } from "./bootstrap-capable.js"; import type { CasStore, Hash, Store, TagStore, VarStore } from "./types.js"; /** * The cas sub-store of an in-memory `Store` — also satisfies the legacy * `BootstrapCapableStore` interface so that helpers that have not yet been * refactored (e.g. bootstrap, gc, render) continue to work against * `store.cas`. */ export type MemoryCasStore = BootstrapCapableStore & { put(typeHash: Hash, payload: unknown): Hash; delete(hash: Hash): boolean; }; /** * Build an in-memory `VarStore` backed by the supplied CAS store. Exposed so * non-Memory CAS stores (e.g. the FS store) can compose a full `Store` * without re-implementing variable storage. */ export declare function createMemoryVarStoreFor(cas: CasStore): VarStore; /** * Build an in-memory `TagStore`. Exposed for composition with non-Memory CAS * stores. */ export declare function createMemoryTagStoreImpl(): TagStore; /** * Create an in-memory `Store` with three sub-stores: `cas`, `var`, `tag`. * * The `cas` sub-store also satisfies the legacy `BootstrapCapableStore` * contract — it carries a `[BOOTSTRAP_STORE]` callable and a `listAll()` * helper — so existing helpers (`bootstrap`, `gc`, `render`, …) can be * called with `store.cas` until they are migrated to the unified surface. */ export declare function createMemoryStore(): Store & { cas: MemoryCasStore; }; //# sourceMappingURL=store.d.ts.map