import type { CaptureReport } from "../types.js"; import type { Backlog } from "./lib.js"; export interface CheckProblem { kind: "schema" | "reason-missing" | "unknown-category" | "stale-md" | "drift-resolved" | "issue-missing" | "issue-orphaned" | "issue-schema" | "acceptance-missing" | "frames-missing" | "problem-unexplained"; /** A warning is reported and does not fail the check unless asked to (`--strict`). */ level?: "warning"; fingerprint?: string; message: string; } /** The problems that fail the check: every error, plus the warnings when strict. */ export declare function failing(problems: CheckProblem[], strict?: boolean): CheckProblem[]; export declare function checkBacklog(backlog: Backlog, opts: { mdOnDisk: string | null; latestReport: CaptureReport | null; /** * Pre-fix frames frozen per issue id. Omitted by a caller that cannot read * the issue folders, and then the frames are not checked at all rather * than reported missing on no evidence. */ framesByIssue?: Record; /** * Which judge panels the latest judge run actually asked, from * judge-report.json. Omitted (or null) by a caller without a report, and * then every covered-but-unrefreshed AI finding is flagged as before. */ judgedPanels?: readonly string[] | null; }): CheckProblem[];