import { IDebugLogger } from '../utils/debuglogger'; import { SkillMetadata } from './types'; export declare function toOptionalString(value: unknown): string | undefined; /** * Parses SKILL.md content and extracts frontmatter + markdown body. * If no valid frontmatter is present, frontmatter is empty and body is the full content. */ export declare function parseSkillMarkdown(content: string, logger: IDebugLogger): { frontmatter: Record; body: string; }; /** * Parses a SKILL.md file content to extract all metadata. */ export declare function parseSkillMetadataFromContent(content: string, skillPath: string, logger: IDebugLogger): SkillMetadata; /** * Parses a SKILL.md file to extract metadata for the registry (legacy format) * @param {string} filePath - The absolute path to the SKILL.md file. * @returns {Object|null} - Returns { name, description, folderPath } or null if invalid. */ export default function parseSkillMetadata(filePath: string, logger: IDebugLogger): { name: string; description: string; folderPath: string; } | null;