/** * Serializes per-category security test results to `security-summary.json`. * * This file is the only writer of `security-summary.json`. It is deliberately * kept as a thin, self-contained module so it can be imported by the security * test runner (a plain JS script) without pulling in the entire test framework. */ import type { SecurityCategoryInfo } from '../lib/security/types.js'; /** A single category result object returned by the security test runner. */ export interface SecurityResult { type: 'regression_tests' | 'penetration_tests' | 'configuration_validation'; /** Pass/total counts — same shape as SecurityCategoryInfo in lib/security/types.ts. */ summary: SecurityCategoryInfo; } /** * Serialize per-category security results to `security-summary.json` in the * current working directory. * * The shape written here is identical to the `SecuritySummary` interface read * by `readSecuritySummary()` in `lib/security/summaryHelpers.ts` — TypeScript * enforces that the two sides stay in sync at compile time. * * @param results - Category result objects from the runner. */ export declare function writeSummaryFile(results: SecurityResult[]): void; //# sourceMappingURL=writeSummaryFile.d.ts.map