/** * In-Memory Workflow Storage Implementation * * Simple in-memory implementation of IWorkflowStorage for testing and development. * * @module execution/workflow/memory-storage */ import type { IWorkflowStorage } from './orchestrator.js'; import type { WorkflowCheckpoint } from './types.js'; /** * InMemoryWorkflowStorage - In-memory checkpoint storage * * Simple implementation that stores checkpoints in a Map. * Suitable for testing and single-process workflows. * Not suitable for production use with multiple processes. */ export declare class InMemoryWorkflowStorage implements IWorkflowStorage { _checkpoints: Map; /** * Save a checkpoint to memory * * @param checkpoint - Checkpoint to save */ saveCheckpoint(checkpoint: WorkflowCheckpoint): Promise; /** * Load a checkpoint from memory * * @param executionId - Execution ID to load * @returns Checkpoint or null if not found */ loadCheckpoint(executionId: string): Promise; /** * List all checkpoints, optionally filtered by workflow ID * * @param workflowId - Optional workflow ID to filter by * @returns Array of checkpoints */ listCheckpoints(workflowId?: string): Promise; /** * Delete a checkpoint from memory * * @param executionId - Execution ID to delete */ deleteCheckpoint(executionId: string): Promise; /** * Clear all checkpoints (useful for testing) */ clear(): void; /** * Get the number of stored checkpoints (useful for testing) */ size(): number; } //# sourceMappingURL=memory-storage.d.ts.map