/**
 * Skill discovery for cloned GitHub repositories
 *
 * Searches for SKILL.md files and parses their YAML frontmatter
 * to identify valid skills within a cloned repo.
 */
/**
 * Discovered skill information
 */
export type DiscoveredSkill = {
    name: string;
    description: string;
    dirPath: string;
    rawContent: string;
};
/**
 * Parsed frontmatter from a SKILL.md file
 */
type ParsedFrontmatter = {
    name: string;
    description: string;
};
/**
 * Parse YAML frontmatter from a SKILL.md file to extract name and description.
 *
 * Uses regex parsing to avoid adding a gray-matter dependency.
 * Handles both quoted and unquoted values.
 *
 * @param args - The function arguments
 * @param args.content - The raw SKILL.md content
 *
 * @returns Parsed name and description, or null if invalid
 */
export declare const parseSkillFrontmatter: (args: {
    content: string;
}) => ParsedFrontmatter | null;
/**
 * Discover skills within a cloned repository
 *
 * Searches for SKILL.md files following the Agent Skills specification:
 * 1. Root directory (if it has SKILL.md, return immediately)
 * 2. Recursive search (up to 5 levels deep)
 *
 * Deduplicates by skill name.
 *
 * @param args - The function arguments
 * @param args.basePath - Root path of the cloned repository
 * @param args.subpath - Optional subpath to search within
 *
 * @returns Array of discovered skills
 */
export declare const discoverSkills: (args: {
    basePath: string;
    subpath?: string | null;
}) => Promise<Array<DiscoveredSkill>>;
export {};
//# sourceMappingURL=skillDiscovery.d.ts.map