/** * Group API factory for Code Mode. * * Creates namespaced API objects from tool definitions, with method aliases * and help() for discoverability. */ import type { ToolDefinition } from '../../types/index.js'; import type { ToolDispatcher, GroupApiRecord } from './types.js'; /** * Convert tool name to camelCase method name. * * Examples: * create_entry (core) → createEntry * search_entries (search) → searchEntries * get_github_issues (github) → getGithubIssues * team_create_entry (team) → teamCreateEntry * backup_journal (backup) → backupJournal */ export declare function toolNameToMethodName(toolName: string, groupName: string): string; /** * Create a group API from tool definitions. * Each tool becomes a method on the group object. * * @param groupName - Tool group name (e.g., 'core', 'search') * @param tools - Tool definitions for this group * @param dispatcher - Optional SEC-1.1 dispatch gate; when provided, calls go * through callTool() rather than tool.handler() for full middleware enforcement. */ export declare function createGroupApi(groupName: string, tools: ToolDefinition[], dispatcher?: ToolDispatcher): GroupApiRecord; //# sourceMappingURL=group-factory.d.ts.map