import type { ScanReport } from "../core/scanner-engine"; import type { Finding, RuleSeverity } from "../rules/types"; import { type CompliancePostureSummary, type RuleComplianceMapping } from "./compliance"; export type SeverityBreakdown = Record; export type IssueClassification = "production-code" | "test-fixture" | "rule-definition" | "benchmark" | "other"; export type ClassificationBreakdown = Record; export type ReportIssue = Finding & { issueKey: string; classification: IssueClassification; actionable: boolean; classificationReason: string; }; export type ReportIssueGroup = { key: string; title: string; severity: RuleSeverity; issues: ReportIssue[]; }; export type ReportDelta = { baselineIssueCount: number; currentIssueCount: number; newIssueCount: number; resolvedIssueCount: number; unchangedIssueCount: number; newHighOrCriticalCount: number; }; export type AuditReport = { generatedAt: string; targetPath: string; totals: { totalIssues: number; discoveredFiles: number; scannedFiles: number; skippedUnsupportedFiles: number; skippedLargeFiles: number; failedFiles: number; bytesRead: number; elapsedMs: number; }; severityBreakdown: SeverityBreakdown; classificationBreakdown: ClassificationBreakdown; actionableSummary: { actionableIssues: number; likelyNonActionableIssues: number; }; issues: ReportIssue[]; groups: ReportIssueGroup[]; compliance: { ruleMappings: RuleComplianceMapping[]; postureSummary: CompliancePostureSummary; }; delta?: ReportDelta; }; export declare function createAuditReport(scanReport: ScanReport, elapsedMs: number): AuditReport;