import type { CapabilityRegistry, ToolDefinition, ModificationLogEntry } from './types.js'; export declare class CapabilityRegistryManager { private registry; private registryPath; private versionHistory; constructor(registryPath: string); /** * Load the registry from disk. Creates an empty one if not found. */ load(): Promise; /** * Save the registry to disk with updated manifest hash. */ save(): Promise; /** * Get the current registry state (readonly snapshot). */ getRegistry(): CapabilityRegistry; /** * Add a new tool to the registry. * The tool must have status 'approved' before calling this. */ addTool(tool: ToolDefinition, approvedBy: string, proposalId: string): void; /** * Deprecate a tool. It remains in the registry but is no longer active. */ deprecateTool(toolId: string, deprecatedBy: string, _reason: string): void; /** * Rollback the registry to the previous version. * Returns true if rollback succeeded, false if no history available. */ rollback(rolledBackBy: string): boolean; /** * Find a tool by ID across active and deprecated pools. */ findTool(toolId: string): ToolDefinition | undefined; /** * List all active tools. */ listActiveTools(): readonly ToolDefinition[]; /** * List all deprecated tools. */ listDeprecatedTools(): readonly ToolDefinition[]; /** * Get the modification history. */ getModificationHistory(): readonly ModificationLogEntry[]; /** * Verify registry integrity by recomputing the manifest hash. */ verifyIntegrity(): { valid: boolean; expected: string; actual: string; }; private createEmptyRegistry; private pushHistory; private incrementVersion; private logModification; private computeManifestHash; }