import { type Backlog } from "../backlog/lib.js"; import type { CheckOutcome } from "./check.js"; import { type ResolvedConfig } from "../types.js"; import { type Parsed } from "../util.js"; export { backlogPath, loadBacklog, markdownPath, saveBacklog, updateBacklog } from "../backlog/store.js"; /** What one conformance sweep did, for the run summary. */ export interface ConformanceRun { /** Files that came back with a verdict, cache hits included. */ read: number; /** Of those, how many cost nothing because the file had not changed. */ cached: number; /** Files chosen for reading. */ considered: number; /** Files chosen but left without a verdict; asked about again next run. */ unread: number; /** Hand-rolled controls the reader stands behind. */ found: number; /** Scanner suspicions it killed. */ refuted: number; /** Open findings the reader now disagrees with; adjudication is a person's call. */ disagreements: number; costUsd: number; } /** Merge the latest evidence + judge results; shared with `lookout check`. */ export declare function mergeLatest(resolved: ResolvedConfig, opts: { judgeOutcome?: CheckOutcome | null; /** * Also read the source and file hand-rolled duplicates of kit components. * * Opt-in rather than automatic, because `verify-fix` merges through here * too. A visual fix that happens to be verified in a repository with a * hand-rolled button would otherwise file that button as an issue the fix * had just caused, which is untrue: it was there all along and nobody had * looked. `check` is the verb that sweeps, so `check` is the verb that asks. */ scanSource?: boolean; /** * Also read the application with the conformance skill, which sees the * hand-rolls the scan cannot: a control built out of raw elements in a file * that imports the kit for something else. Costs model calls, so the caller * decides, and the caller is `check`. */ conformance?: { model?: string; fileBudget?: number; cache?: boolean; }; }): Promise<{ backlog: Backlog; added: number; reopened: number; refreshed: number; conformance?: ConformanceRun; }>; export declare function backlog(parsed: Parsed): Promise;