/** * CI-native output formats (RFC 0003 R4). One normalized finding shape in, * three formats out: --json (stable machine schema), --sarif (SARIF 2.1.0 * for code-scanning upload), --github (workflow-command annotations). */ export interface ReportableFinding { code: string; severity: "error" | "warning"; message: string; fix?: string; /** File+line for audit evidence; the project file for design findings. */ file: string; line?: number; screen?: string; state?: string; journey?: string; } export interface ReportEnvelope { tool: "uxloom"; command: "check" | "audit" | "design"; version: string; summary: Record; findings: ReportableFinding[]; } export type OutputFormat = "human" | "json" | "sarif" | "github"; export declare function parseFormatFlag(args: string[]): OutputFormat; export declare function renderJson(envelope: ReportEnvelope): string; export declare function renderSarif(envelope: ReportEnvelope): string; export declare function renderGithub(envelope: ReportEnvelope): string; export declare function render(envelope: ReportEnvelope, format: Exclude): string;