/** The only top-level frontmatter keys a catalog SKILL.md may carry. */ export declare const ALLOWED_FRONTMATTER_KEYS: readonly ['name', 'description', 'tags', 'tools', 'license']; /** * Problems that keep `text` from being a canonical catalog SKILL.md: no * frontmatter, a key outside the allow-list, any line that is not a * single-line `key: value` (indented, flow-mapping, anchor, alias, tag or * block-scalar forms, or a value holding a U+2028/U+2029), or a `---` * anywhere in a line — Claude Code ends the frontmatter at the first `---`, * even mid-value, and would read the rest as body. Staging refuses what * `sanitizeFrontmatter` produces unless this is empty. */ export declare function frontmatterViolations(text: string): string[]; /** * Rewrites the frontmatter of `text` to the allow-listed keys, one line each * (strings JSON-quoted, lists as JSON arrays of plain tokens), keeping the * body byte-for-byte. `removed` names the dropped keys. Text without * frontmatter is returned unchanged (inspection then refuses it). */ export declare function sanitizeFrontmatter(text: string): { text: string; removed: string[]; }; //# sourceMappingURL=frontmatter.d.ts.map