/** * P2-a Theme G — catalog governance. * * Two enforcers: catalog size must grow to ≥ 40 (the P2-a target), * and the prose-only ratio must stay ≤ 7% (per spec §10.2 L2 * acceptance; tightened from the pre-v2.12.1 5% target to reflect * the catalog governance reform — see `.peaks/memory/2026-06-27- * prose-only-catalog-followup.md` for the full rationale and the * per-entry backlog triage). Both fire on the catalog's static * state — no file scan, just the catalog itself. */ import type { LintHit } from './lint-style.js'; export declare const CATALOG_SIZE_TARGET = 40; export declare const PROSE_ONLY_RATIO_TARGET = 0.07; export interface CatalogSize { readonly size: number; readonly target: number; } export interface CatalogProseOnlyRatio { readonly ratio: number; readonly target: number; } export declare function lintCatalogSize(actualSize: number): readonly LintHit[]; /** * Prose-only ratio: count catalog entries whose `enforcerRef` is * null (i.e. not backed by a CLI surface) divided by the total * catalog size. Per spec §10.2, the L2 acceptance is ≤ 10% at * P2-a; v2.12.1 catalog governance tightened the gate to ≤ 7% * after the discovered-prose-only reform (see * `.peaks/memory/2026-06-27-prose-only-catalog-followup.md`). */ export declare function lintCatalogProseOnlyRatio(catalogSize: number, proseOnlyCount: number): readonly LintHit[];