/** * Shared label formatting for the AI-context emitters (CLAUDE.md, AGENTS.md, * .github/copilot-instructions.md). ONE acronym-aware Title-Caser so `api_type` * renders "API Type" everywhere — not "Api Type" in one file and a raw * `api_type` key in another. Unified 2026-06-25 (faf-cli 6.15.1). * * Labels are registry-first: `slotLabel()` reads the canonical label from the * slot registry ("know your stack"); the acronym-aware `titleLabel()` is only a * fallback for off-registry freeform keys. */ /** All-caps acronym tokens that stay upper-cased inside a Title-Cased label. */ export declare const ACRONYMS: Set; /** * snake_case → Title Case, acronym-aware. * `api_type` → "API Type", `mcp_sdk` → "MCP SDK", `runtime` → "Runtime". */ export declare function titleLabel(key: string): string; /** A slot value that carries real content (not empty, not slotignored). */ export declare function filled(v: unknown): v is string; /** * A six-W value as one line of text, or null when the slot does not count as * filled. Same rule as the scorer: empty, `slotignored` and placeholder words * (TBD, None, N/A, …; isPlaceholder) are not facts. Numbers, booleans, dates * and lists are facts and render as text. Line breaks and runs of spaces * become one space, so a value never opens a new line in the host file. Files * that put a bullet or comment marker before each value (CLAUDE.md, GEMINI.md, * .cursorrules, Copilot, MEMORY.md) are then safe; llms.txt writes values on * their own line and escapes a leading Markdown marker itself (llms.ts). * One slot, one fact, one line. */ export declare function factText(v: unknown): string | null; /** * The fact at `path` in .faf data as one line (factText), with numbers as * written in the file. YAML reads an unquoted `2026.10`, `0x1F` or `1e3` as a * number and loses the text; this puts it back from the file faf read, so every * context file shows what the person wrote. Data that was not read from a file * (no source recorded) renders as before. */ export declare function factAt(data: object, path: readonly string[]): string | null; /** * The filled six W's, in fixed order, as [label, value] pairs ("Who", "What", * "Why", "Where", "When", "How"). One source for every context file faf writes * (CLAUDE.md, GEMINI.md, .cursorrules, Copilot), so they agree word for word. * Each renderer formats the pairs in its host file's own style. */ export declare function sixWsFilled(data: { human_context?: unknown; }): [string, string][]; /** * The canonical display label for a .faf slot path, sourced from the slot * registry ("know your stack") — `stack.cicd` → "CI/CD", `stack.api_type` → "API". * Resolves legacy OR canonical paths (SLOT_BY_PATH is dual-keyed). Falls back to * the acronym-aware Title-Caser for off-registry freeform keys. */ export declare function slotLabel(path: string): string;