/** * Minimal YAML frontmatter reader for skill and agent markdown files. * * Only flat `key: scalar` maps are needed, but the scalar forms real SKILL.md * files use must all work, or a skill silently reaches the catalog with a * description like `>` and never gets chosen: * * - plain values, which may continue on more-indented lines (folded to spaces) * - single- and double-quoted values (quotes removed, `''` / `\"` unescaped) * - block scalars: `>` folds lines into one, `|` keeps newlines; `-`/`+` chomping * indicators are accepted * * Keys are lowercased. Nested maps and lists are not interpreted; their text is * kept as the value's continuation, which callers ignore for unknown keys. */ export interface Frontmatter { fields: Record; body: string; /** False when the file has no well-formed `---` … `---` block. */ hasFrontmatter: boolean; } export declare function parseFrontmatter(raw: string): Frontmatter;