import type { SkillSource, SkillSourceGitHub, SkillSourceURL, SkillSourceLocal, FetchedSkill } from '../types/index.js'; /** * Detect the skill source type from user input string. * * - Local file/dir path: starts with ./ or ../ or is absolute * - Full GitHub URL: starts with https://github.com/ * - Direct URL to .md: starts with http(s):// and ends with .md * - Generic URL: starts with http(s):// * - GitHub shorthand: contains exactly one / with no spaces (owner/repo) * - Built-in skill name: everything else */ export declare function detectSkillSource(input: string): SkillSource; /** * Fetch skills from a GitHub repository. * Clones the repo to a temp directory, scans for skill .md files, returns them. */ export declare function fetchFromGitHub(source: SkillSourceGitHub): Promise; /** * Fetch a skill from a direct URL. * If the URL points to a raw .md file, fetch and validate it. * If it points to a GitHub blob URL, convert to raw URL automatically. */ export declare function fetchFromURL(source: SkillSourceURL): Promise; /** * Fetch skills from a local file or directory. */ export declare function fetchFromLocal(source: SkillSourceLocal): Promise; //# sourceMappingURL=skill-fetcher.d.ts.map