/** * Rendering and writing of the security audit artifact. Split out of * `security-audit-service.ts`, which was over the per-file cap; the service now * depends on this module rather than carrying the markdown itself. */ import type { SecurityAuditEnvelope, SecurityAuditVerdict } from './security-audit-service.js'; /** * Render a SecurityAuditEnvelope to the canonical audit artifact body * (markdown). Produce a markdown body with all required sections, ready to * write to `.peaks/_runtime//audit/security-.md`. */ export declare function renderSecurityAuditArtifact(env: SecurityAuditEnvelope, opts: { rid: string; handoffHash: string; generatedAt: string; }): { body: string; violationsCount: number; verdict: SecurityAuditVerdict; }; /** * Write the rendered audit artifact to * `.peaks/_runtime//audit/security-.md`. * * Atomic write (tmp + rename) to avoid partial writes on crash. * Returns the absolute path on success. */ export declare function writeSecurityAuditArtifact(projectRoot: string, sessionId: string, rid: string, body: string): string;