/** The custom-executor law: the executor receives coerced args and a deep-frozen * CLONE of the records (mutation throws; the live store is never handed out) and * returns { result, patches }; the desk applies the patches through the shared * gated, audited, attesting path — a custom tool's done is true by construction. * Store is the world-package-private record container; it crosses no package * boundary. */ import type { CustomExecutor, Json, Patch, ReadyCall, StateSnapshot, ToolAnswer } from '../contract/vocabulary.js'; export declare class Store { private readonly records; private readonly counters; private readonly minted; constructor(records: StateSnapshot); get(entity: string, id: string): Readonly> | null; entity(entity: string): Readonly>>>; merge(entity: string, id: string, set: Readonly>): void; remove(entity: string, id: string): void; mintId(entity: string): string; /** Validates EVERY patch first, then applies — a patch set never half-applies. * A patch may name an existing record or one minted in this run; anything else * is the refusal sentence. */ applyPatches(patches: readonly Patch[]): string | null; snapshot(): StateSnapshot; } export declare class PatchDesk { runCustom(executor: CustomExecutor, call: ReadyCall, store: Store): ToolAnswer; } //# sourceMappingURL=patch-desk.d.ts.map