import type { FileTree } from '@principal-ai/repository-abstraction'; import type { Skill, SkillSource, FrontmatterValidation } from '../hooks/useSkillsData'; /** * Helper function to determine skill source and priority from path */ export declare const determineSkillSource: (path: string) => { source: SkillSource; priority: 1 | 2 | 3 | 4 | 5; }; /** * Helper function to find skill markdown files from the FileTree's allFiles array * Looks for any .md files in .agent/skills/ or .claude/skills/ directories (local mode) * or SKILL.md files anywhere in the tree (browser mode for GitHub repositories) */ export declare const findSkillFiles: (fileTree: FileTree, isBrowserMode?: boolean) => string[]; /** * Helper function to analyze skill folder structure */ export declare const analyzeSkillStructure: (fileTree: FileTree, skillPath: string) => { skillFolderPath: string; hasScripts: boolean; hasReferences: boolean; hasAssets: boolean; scriptFiles: string[]; referenceFiles: string[]; assetFiles: string[]; }; /** * Helper function to validate YAML frontmatter structure and required fields * Now validates gracefully - considers skills valid even with missing required fields */ export declare const validateFrontmatter: (content: string) => FrontmatterValidation; /** * Helper function to parse skill markdown content and extract metadata */ export declare const parseSkillContent: (content: string, path: string, fileTree: FileTree, fileSystemAdapter?: any, isBrowserMode?: boolean) => Promise; //# sourceMappingURL=skillsUtils.d.ts.map