import type { IMachineMemory } from './interface'; /** * A telemetred In-memory implementation of machine state storage for single-instance NodeJS apps. * * Best for: Container apps, request-scoped workflows, testing, demos * Not for: Multi-instance deployments, persistent workflows, distributed systems * * @example * const memory = new TelemetredSimpleMachineMemory(); * const orchestrator = createArvoOrchestrator({ * memory, * executionunits: 0.1, * machines: [workflow] * }); */ export declare class TelemetredSimpleMachineMemory = Record> implements IMachineMemory { private readonly memoryMap; private readonly lockMap; /** * Gets stored state for a machine instance * @param id Machine instance ID * @returns State data or null if not found * @throws {Error} When id is empty or undefined */ read(id: string): Promise; /** * Stores state for a machine instance * @param id Machine instance ID * @param data State to store * @throws {Error} When id is empty/undefined or data is null/undefined */ write(id: string, data: T): Promise; /** * Attempts to acquire lock for machine instance * @param id Machine instance ID * @returns Success status of lock acquisition * @throws {Error} When id is empty or undefined */ lock(id: string): Promise; /** * Releases lock for machine instance * @param id Machine instance ID * @returns True when lock is released * @throws {Error} When id is empty or undefined */ unlock(id: string): Promise; /** * Clears all stored data and locks */ clear(key?: string): void; }