/** * @module skills-tools * @description MCP tools for listing, bundling, and installing the SAP MCP skill pack. */ import type { Server } from '@modelcontextprotocol/sdk/server/index.js'; import type { SapMcpContext } from '../../core/src/types.js'; type AgentTarget = 'claude' | 'codex' | 'hermes' | 'openclaw' | 'clawpump' | 'custom'; interface SkillToolInput { agent?: AgentTarget; targetDir?: string; skills?: string[]; confirm?: boolean; includeContents?: boolean; } interface SkillFile { path: string; content: string; } /** * @name parseInput * @description Narrows unknown MCP tool input into skill tool input. */ export declare function parseInput(input: unknown): SkillToolInput; /** * @name listBundledSkillNames * @description Lists bundled skill directories. * @returns Sorted array of bundled skill directory names that contain a SKILL.md entrypoint. */ export declare function listBundledSkillNames(): string[]; /** * @name getBundledSkillContents * @description Returns the SKILL.md contents for all bundled skills (or a subset). * @param selected - Optional list of skill names. When omitted, returns all skills. * @returns Array of { name, content } objects with SKILL.md contents. */ export declare function getBundledSkillContents(selected?: string[]): Array<{ name: string; content: string; }>; /** * @name installSkillFiles * @description Copies bundled skill files into the target skills directory. */ export declare function installSkillFiles(files: SkillFile[], targetDir: string): string[]; /** * @name registerSkillsTools * @description Registers skill pack discovery, export, and install tools. */ export declare function registerSkillsTools(server: Server, context: SapMcpContext): void; /** * @name compareVersions * @description Semver comparison helper. Returns 1 if a > b, -1 if a < b, 0 if equal. */ export declare function compareVersions(a: string, b: string): number; export {}; //# sourceMappingURL=skills-tools.d.ts.map