import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; type SkillCategory = 'development' | 'creative' | 'enterprise' | 'data' | 'devops' | 'other'; type TrustLevel = 'community' | 'verified' | 'official'; interface SkillMetadata { name: string; version: string; description: string; author: string; license: string; tags: string[]; category: SkillCategory; repository?: string; homepage?: string; minSkillliVersion?: string; trustLevel: TrustLevel; checksum?: string; disableModelInvocation?: boolean; userInvocable?: boolean; } interface ParsedSkill { metadata: SkillMetadata; content: string; rawFrontmatter: string; filePath: string; } interface RatingInfo { average: number; count: number; distribution: [number, number, number, number, number]; } interface RegistryEntry { name: string; version: string; description: string; author: string; tags: string[]; category: SkillCategory; repository: string; trustLevel: TrustLevel; downloads: number; rating: RatingInfo; publishedAt: string; updatedAt: string; checksum: string; } interface LocalIndex { version: string; lastUpdated: string; skills: Record; } interface InstalledSkill { name: string; version: string; installedAt: string; path: string; source: 'registry' | 'local' | 'github'; } interface LocalConfig { installedSkills: Record; registryUrl: string; lastSync: string; userId?: string; } interface SearchOptions { query: string; tags?: string[]; category?: SkillCategory; trustLevel?: TrustLevel; minRating?: number; limit?: number; offset?: number; } interface SearchResult { skill: RegistryEntry; relevanceScore: number; matchedOn: ('name' | 'description' | 'tags' | 'category')[]; } interface TrawlOptions { sources?: ('registry' | 'github' | 'npm')[]; maxResults?: number; } interface TrawlResult { source: 'registry' | 'github' | 'npm' | 'web'; skill: Partial; confidence: number; url: string; } interface SafeguardResult { passed: boolean; score: number; checks: SafeguardCheck[]; } interface SafeguardCheck { name: string; passed: boolean; severity: 'info' | 'warning' | 'error'; message: string; } declare function validateMetadata(data: unknown): SkillMetadata; declare function parseSkillContent(content: string, filePath?: string): ParsedSkill; declare function parseSkillFile(filePath: string): Promise; declare function extractManifest(skill: ParsedSkill): Record; declare function search(index: LocalIndex, options: SearchOptions): SearchResult[]; declare function searchByTags(index: LocalIndex, tags: string[]): SearchResult[]; declare function searchByCategory(index: LocalIndex, category: SkillCategory): SearchResult[]; declare function installFromRegistry(name: string, version?: string): Promise; declare function installFromGithub(repoUrl: string, nameOverride?: string): Promise; declare function installFromLocal(dirPath: string): Promise; declare function uninstall(name: string): Promise; declare function linkToClaudeSkills(skill: InstalledSkill, projectDir?: string): Promise; declare function runSafeguards(skill: ParsedSkill, skillDir?: string): Promise; declare function computeTrustScore(skill: ParsedSkill, registryEntry?: RegistryEntry): number; declare function fetchIndex(registryUrl?: string): Promise; declare function getSkillEntry(name: string): Promise; declare function syncIndex(): Promise; declare function getRatings(name: string): Promise; declare function submitRating(name: string, rating: number, userId: string, comment?: string): Promise; declare function formatRating(rating: RatingInfo): string; declare function packageSkill(skillDir: string): Promise<{ skill: ParsedSkill; manifest: Record; checksum: string; }>; declare function getConfig(): Promise; declare function getLocalIndex(): Promise; declare function getInstalledSkills(): Promise; declare function trawl(query: string, options?: TrawlOptions): Promise; declare function createSkillliMcpServer(): McpServer; declare const SkillMetadataSchema: z.ZodObject<{ name: z.ZodString; version: z.ZodString; description: z.ZodString; author: z.ZodString; license: z.ZodString; tags: z.ZodArray; category: z.ZodEnum<["development", "creative", "enterprise", "data", "devops", "other"]>; repository: z.ZodOptional; homepage: z.ZodOptional; 'min-skillli-version': z.ZodOptional; 'trust-level': z.ZodDefault>; checksum: z.ZodOptional; 'disable-model-invocation': z.ZodDefault; 'user-invocable': z.ZodDefault; }, "strip", z.ZodTypeAny, { name: string; description: string; tags: string[]; category: "development" | "creative" | "enterprise" | "data" | "devops" | "other"; version: string; author: string; license: string; 'trust-level': "community" | "verified" | "official"; 'disable-model-invocation': boolean; 'user-invocable': boolean; repository?: string | undefined; homepage?: string | undefined; 'min-skillli-version'?: string | undefined; checksum?: string | undefined; }, { name: string; description: string; tags: string[]; category: "development" | "creative" | "enterprise" | "data" | "devops" | "other"; version: string; author: string; license: string; repository?: string | undefined; homepage?: string | undefined; 'min-skillli-version'?: string | undefined; 'trust-level'?: "community" | "verified" | "official" | undefined; checksum?: string | undefined; 'disable-model-invocation'?: boolean | undefined; 'user-invocable'?: boolean | undefined; }>; declare const VERSION = "0.1.0"; export { type InstalledSkill, type LocalConfig, type LocalIndex, type ParsedSkill, type RatingInfo, type RegistryEntry, type SafeguardCheck, type SafeguardResult, type SearchOptions, type SearchResult, type SkillCategory, type SkillMetadata, SkillMetadataSchema, type TrawlOptions, type TrawlResult, type TrustLevel, VERSION, computeTrustScore, createSkillliMcpServer, extractManifest, fetchIndex, formatRating, getConfig, getInstalledSkills, getLocalIndex, getRatings, getSkillEntry, installFromGithub, installFromLocal, installFromRegistry, linkToClaudeSkills, packageSkill, parseSkillContent, parseSkillFile, runSafeguards, search, searchByCategory, searchByTags, submitRating, syncIndex, trawl, uninstall, validateMetadata };