/** * Resource manager for preventing conflicts and deadlocks */ import { CoordinationConfig } from "../utils/types.js"; import { IEventBus } from "../core/event-bus.js"; import { ILogger } from "../core/logger.js"; /** * Resource manager implementation */ export declare class ResourceManager { private config; private eventBus; private logger; private resources; private locks; private waitQueue; private agentResources; constructor(config: CoordinationConfig, eventBus: IEventBus, logger: ILogger); initialize(): Promise; shutdown(): Promise; acquire(resourceId: string, agentId: string, priority?: number): Promise; release(resourceId: string, agentId: string): Promise; releaseAllForAgent(agentId: string): Promise; getAllocations(): Map; getWaitingRequests(): Map; getHealthStatus(): Promise<{ healthy: boolean; error?: string; metrics?: Record; }>; private lockResource; private unlockResource; performMaintenance(): Promise; private cleanup; } //# sourceMappingURL=resources.d.ts.map