export interface SarifHealthFinding { filePath: string; functionName: string; startLine: number; endLine: number; ruleId: string; message: string; severity: 'error' | 'warning' | 'note'; } export interface SarifRule { id: string; name: string; shortDescription: { text: string; }; fullDescription: { text: string; }; helpUri?: string; } export interface SarifResult { ruleId: string; level: 'error' | 'warning' | 'note'; message: { text: string; }; locations: Array<{ physicalLocation: { artifactLocation: { uri: string; }; region?: { startLine: number; endLine?: number; }; }; }>; } export interface SarifDocument { $schema: string; version: '2.1.0'; runs: [ { tool: { driver: { name: string; version: string; rules: SarifRule[]; }; }; results: SarifResult[]; } ]; } /** * Fallback SARIF generator when @monoes/monograph does not export exportHealthSarif * (e.g. published @monoes/monograph@1.5.8 packaging bug). */ export declare function exportHealthSarifFallback(findings: SarifHealthFinding[], root?: string): SarifDocument; /** * Formats findings into a SARIF 2.1.0 document. Delegates to @monoes/monograph's * real exporter when available, otherwise safely falls back to built-in exporter. */ export declare function exportHealthSarif(findings: SarifHealthFinding[], root?: string): SarifDocument; /** * Adapts security-scan findings (file:line-ish locations, flat rawSeverity) into * the shape monograph's SARIF exporter expects. Reused rather than reimplemented — * see doc/commands/security.md. */ export declare function findingsToSarif(findings: Array<{ type: string; location: string; description: string; rawSeverity: 'critical' | 'high' | 'medium' | 'low'; }>): SarifHealthFinding[]; //# sourceMappingURL=security-scan-sarif.d.ts.map