import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import type { ToolContext } from "../tool-context.js"; export interface SkillDoc { /** URI slug: `crosspad/hil-testing`, `crosspad` for the skill's own SKILL.md */ id: string; file: string; title: string; bytes: number; } /** First markdown heading, or the file name if it has none. */ export declare function titleOf(markdown: string, fallback: string): string; /** Find the bundled skill documents. Returns [] when the package has none. */ export declare function discoverSkillDocs(root?: string): SkillDoc[]; /** * Register one resource per bundled skill document, plus `skill://index` * listing them — a client that cannot enumerate resources can still find out * what is on offer with one read. */ export declare function registerSkillResources(server: McpServer, _ctx: ToolContext, root?: string): string[];