import { NoydbStore } from '@noy-db/hub/to'; /** * **@noy-db/to-memory** — in-memory store for NOYDB (testing and development). * * Backed by nested `Map` objects: `vault → collection → id → envelope`. * Data is lost when the process exits — this store is intentionally * non-persistent. * * ## When to use * * - **Unit tests** — fast, zero I/O, works in any environment. * - **In-memory caching layer** — pair with `routeStore` to keep a hot * copy of frequently-read collections in memory while persisting to * a durable backend. * - **REPL / prototyping** — explore the NOYDB API without setting up * a backend. * * ## Capabilities * * | Capability | Value | * |---|---| * | `casAtomic` | `true` — Map operations are synchronous and inherently atomic | * | `txAtomic` | `true` — multi-record `tx()` applies every op in a single synchronous burst | * | `listVaults` | ✓ — iterates outer Map keys | * | `listPage` | ✓ — cursor-based pagination over sorted id list | * | `ping` | ✓ — always returns `true` | * * @packageDocumentation */ /** * Create an in-memory adapter backed by nested Maps. * No persistence — data is lost when the process exits. * Intended for testing and development. */ declare function toMemory(opts?: { clockUncertaintyMs?: number; }): NoydbStore; export { toMemory };