import { type ProjectType } from '@salesforce/b2c-tooling-sdk/discovery'; import { type DocCategory } from '@salesforce/b2c-tooling-sdk/docs'; import type { McpTool, Toolset, StartupFlags } from './utils/index.js'; import type { B2CDxMcpServer } from './server.js'; import type { Services } from './services.js'; import type { ServerContext } from './server-context.js'; /** * Registry of tools organized by toolset. * Tools can belong to multiple toolsets via their `toolsets` array. */ export type ToolRegistry = Record; /** * Creates the tool registry from all toolset providers. * Tools are organized by their declared `toolsets` array, allowing * a single tool to appear in multiple toolsets. * * @param loadServices - Function that loads configuration and returns Services instance * @returns Complete tool registry */ export declare function createToolRegistry(loadServices: () => Promise | Services, serverContext?: ServerContext, detectedWorkspaces?: readonly ProjectType[], enabledDocCategories?: readonly DocCategory[]): ToolRegistry; export declare function registerToolsets(flags: StartupFlags, server: B2CDxMcpServer, loadServices: () => Promise | Services, serverContext?: ServerContext): Promise;