/** * Shared state module for OpenCode Writer Swarm plugin. */ export interface DelegationEntry { from: string; to: string; timestamp: number; } export interface CacheStats { cacheHits: number; cacheMisses: number; cacheSizeBytes: number; } export declare const swarmState: { /** Active agent per session — keyed by sessionID */ activeAgent: Map; /** Delegation chains per session — keyed by sessionID */ delegationChains: Map; /** Number of events since last flush */ pendingEvents: number; /** Cache statistics for markdown AST parsing */ cacheStats: CacheStats; }; export declare function resetSwarmState(): void;