//#region ../ai/src/skills/sources/parse-frontmatter.d.ts /** The parsed front-matter (cheap metadata) plus the stripped body. */ type ParsedFrontmatter = { /** Every `key: value` line from the front-matter block, values quote-stripped. */meta: Record; /** Everything after the closing `---`, verbatim (the skill body). */ body: string; }; /** * Parse simple `key: value` YAML front-matter — the only form `SKILL.md` * uses (no nested objects, no block arrays). Ported verbatim from the * package's `scripts/generate-llms.mjs` `parseFrontmatter()` so the * runtime catalog and the docs `llms.txt` index agree byte-for-byte on * what a skill's `description` is. * * When the text has no `---`-delimited front-matter block, returns an * empty `meta` and the full text as `body`. */ declare function parseFrontmatter(text: string): ParsedFrontmatter; /** * Split a front-matter `tags:` value into a string array. Accepts a * comma-separated inline list (`tags: frontend, react`) — the simple * inline form that fits the `key: value` parser. Returns `undefined` when * the value is absent or blank so a tagless skill stays `tags: undefined`. */ declare function parseTags(value: string | undefined): string[] | undefined; //#endregion export { ParsedFrontmatter, parseFrontmatter, parseTags }; //# sourceMappingURL=parse-frontmatter.d.mts.map