/** * In-Memory Delegation Graph Storage Provider * * Memory-based implementation for testing and development. * NOT suitable for production (no persistence). * * SOLID: Implements DelegationGraphStorageProvider interface */ import type { DelegationGraphStorageProvider, DelegationNode } from '../delegation-graph'; /** * Memory-based Delegation Graph storage * * Stores delegation nodes in memory with efficient graph queries. * Useful for: * - Unit tests * - Integration tests * - Development/debugging * - Examples */ export declare class MemoryDelegationGraphStorage implements DelegationGraphStorageProvider { private nodes; /** * Get a delegation node by ID */ getNode(delegationId: string): Promise; /** * Save a delegation node */ setNode(node: DelegationNode): Promise; /** * Get all children of a delegation */ getChildren(delegationId: string): Promise; /** * Get the full chain from root to this delegation */ getChain(delegationId: string): Promise; /** * Get all descendants (children, grandchildren, etc.) * * Uses BFS for efficiency. */ getDescendants(delegationId: string): Promise; /** * Delete a node */ deleteNode(delegationId: string): Promise; /** * Clear all data (for testing) */ clear(): void; /** * Get all node IDs (for testing) */ getAllNodeIds(): string[]; /** * Get graph statistics (for testing/debugging) */ getStats(): { totalNodes: number; rootNodes: number; leafNodes: number; maxDepth: number; }; /** * Synchronous chain retrieval (for stats) */ private getChainSync; } //# sourceMappingURL=memory-graph-storage.d.ts.map