import type { ExternalAnalyzerParsedItem, ExternalAnalyzerParseReport, ExternalAnalyzerResults } from "./types.js"; /** * Parse rubocop's `--format json` stdout, REPORTING a degradation rather than * swallowing it: unparsable JSON or a payload with no `files` array comes back as * `parse_failed`, which the acquisition engine classifies `parse_error`. Before * this, a rubocop invocation that crashed or printed a non-JSON banner produced the * same `{results: []}` as a genuinely clean Ruby tree — the one signal the status * contract was designed to carry was unreachable from this adapter. */ export declare function parseRubocopOutcome(stdout: string): ExternalAnalyzerParseReport; /** * The item-list view of {@link parseRubocopOutcome}, for the audit/adapters * normalization seam, which consumes items and reports coverage elsewhere. One * implementation, two views — never two parsers that can drift. */ export declare function parseRubocop(stdout: string): ExternalAnalyzerParsedItem[]; /** * Dedicated severity adapter: route rubocop's parsed items through the shared * generic normalizer so its output matches the exact ExternalAnalyzerResults * contract every other analyzer emits. */ export declare function normalizeRubocopJson(stdout: string): ExternalAnalyzerResults; //# sourceMappingURL=rubocop.d.ts.map