/** * Shared helpers for producing and reading the per-category security summary * displayed in the TEST SUMMARY banner. * * Extracted from qtests-runner.mjs so that both the runner and unit tests can * import the same implementation without subprocess overhead. */ import type { SecurityCategoryInfo, SecuritySummary } from './types.js'; export type { SecurityCategoryInfo, SecuritySummary }; /** * Format a per-category security count for the TEST SUMMARY banner. * * Returns a string like `"3/3 regression ✓"` (with ANSI colour marks) when * `info` is provided, or `null` when `info` is absent so the caller can * `filter(Boolean)` the results. */ export declare function formatSecurityCategory(label: string, info: SecurityCategoryInfo | null | undefined): string | null; /** * Read the per-category summary written by the security runner. * * Returns `null` when the file is absent or its content cannot be parsed as * JSON — the caller falls back to a generic "passed" or "FAILED" label. * * @param summaryPath Absolute path to the JSON file (defaults to * `security-summary.json` in the current working directory). */ export declare function readSecuritySummary(summaryPath?: string): SecuritySummary | null; //# sourceMappingURL=summaryHelpers.d.ts.map