/** * Knowledge body templates — single source of truth for structured, * fillable skeletons per knowledge kind. * * Consumed by the `arcs knowledge template` CLI command and the * knowledge-health validator. Pure module: no fs, no I/O, no side effects. */ import type { KnowledgeKind } from "./storage-utils.js"; /** * One authored section of a knowledge-body template. */ export interface TemplateSection { /** Markdown heading text (rendered as `## `). */ heading: string; /** Short author-guidance sentence, rendered as a deletable HTML comment. */ hint: string; } /** * Structured body template per knowledge kind. Headings are stable * contracts; hints are guidance the author replaces with real content. */ export declare const KNOWLEDGE_TEMPLATES: Record; /** * Returns the section list for a given knowledge kind. */ export declare function getTemplateSections(kind: KnowledgeKind): TemplateSection[]; /** * Renders a fillable markdown skeleton for a kind: each section becomes a * `## ` followed by its hint as an HTML comment, so the guidance * does not count as real content and is trivially deletable. */ export declare function renderTemplate(kind: KnowledgeKind): string; /** * Minimum real-content character count below which a body is considered * shallow by the knowledge-health validator. */ export declare const SHALLOW_BODY_MIN_CHARS = 120; /** * Measures the length of real prose content in a body, defeating both * empty bodies and hollow all-headers templates. * * Drops the leading H1 title, all markdown headings, HTML comments (incl. * multi-line), blockquote markers, and leading list/ordered markers, then * collapses whitespace and returns the trimmed length. */ export declare function extractBodyContentLength(body: string): number; /** * True when a body has less real content than the shallow floor. */ export declare function isBodyShallow(body: string): boolean; //# sourceMappingURL=knowledge-templates.d.ts.map