import { type CoveragePolicy, type PrefixCount } from './classify-prefixes.mts'; import type { ScanResult, SkipCounts } from './types.mts'; export type { CoverageList, CoveragePolicy, PrefixCount } from './classify-prefixes.mts'; export type GenuineBypassCandidate = PrefixCount & { alreadyInAllowList: boolean; }; export type BlockCandidate = PrefixCount & { alreadyDenied: boolean; }; export type KindCount = { kind: string; count: number; }; export type EscalationPressure = { claudeCovered: PrefixCount[]; claudeUncovered: PrefixCount[]; claudeUnresolvedCount: number; e2bigCount: number; }; /** * The privacy boundary: this is what `--json` serializes, so it carries only normalized prefixes * and counts. Read-error paths and failure text exist only on `ScanResult`, as counts here. */ export type CategorizedAudit = { genuineBypassCandidates: GenuineBypassCandidate[]; genuineBypassUnresolvedCount: number; blockCandidates: BlockCandidate[]; blockCandidateUnresolvedCount: number; escalationPressure: EscalationPressure; policyBlockCount: number; /** Failures a caller rule put in its own bucket, by kind. Never counted as bypass candidates. */ otherFailures: KindCount[]; claudeFilesScanned: number; codexFilesScanned: number; readErrorCount: number; repoRoots: string[]; skippedOtherRepo: SkipCounts; skippedUnknownCwd: SkipCounts; rawRetention: ScanResult['rawRetention']; }; /** * Sorts a scan into report buckets against the caller's policy. Bypass candidates come from * Claude's real permission failures; Codex escalations are not scanned here because Codex agents * journal them separately. */ export declare function classifyAudit(scan: ScanResult, policy: CoveragePolicy): CategorizedAudit;