/** * Tool registry system for automatic discovery and registration */ import { ToolDefinition, ToolSchema, ToolResult } from './types.js'; declare class ToolRegistry { private tools; /** * Register a tool with the registry */ register(name: string, definition: ToolDefinition): void; /** * Get a tool definition by name */ get(name: string): ToolDefinition | undefined; /** * Get all registered tool names */ getToolNames(): string[]; /** * Get all tool schemas for API registration */ getSchemas(): ToolSchema[]; /** * Get tools by category */ getByCategory(category: string): ToolDefinition[]; /** * Get safe tools (can be auto-executed) */ getSafeTools(): string[]; /** * Get dangerous tools (require approval) */ getDangerousTools(): string[]; /** * Execute a tool by name */ execute(toolName: string, args: Record): Promise; /** * Check if a tool exists */ has(name: string): boolean; /** * Remove a tool from the registry */ unregister(name: string): boolean; /** * Clear all registered tools */ clear(): void; /** * Get registry statistics */ getStats(): { total: number; byCategory: Record; safe: number; dangerous: number; }; } export declare const toolRegistry: ToolRegistry; /** * Helper function to register a tool */ export declare function registerTool(name: string, definition: ToolDefinition): void; /** * Helper function to get all tool schemas */ export declare function getAllToolSchemas(): ToolSchema[]; /** * Helper function to execute a tool */ export declare function executeTool(name: string, args: Record): Promise; export {}; //# sourceMappingURL=registry.d.ts.map