import type { Logger } from 'winston'; import type { RuleCustomization } from '../types.js'; import { type LintDiagnostics, type LinterResult, type MultiFileLintDiagnostics, type RuleMetadataSource } from './types.js'; /** * Processes the results of a Stylelint lint run. * * If Stylelint reported any warnings, they are converted to Diagnostics and * returned. If the lint results contain raw output in the `code` property, it * is also returned, along with any formatted report (`report`) or any legacy * autofixed code (`output`). * * Throws an `InvalidOptionError` for any invalid option warnings reported by * Stylelint. * @param ruleMetadataSource Rule metadata source for documentation links. * @param linterResult The results returned by Stylelint. * @param logger The logger to use. * @param ruleCustomizations Optional rule customizations for severity overrides. */ export declare function processLinterResult(ruleMetadataSource: RuleMetadataSource | undefined, linterResult: LinterResult, logger: Logger, ruleCustomizations?: RuleCustomization[]): LintDiagnostics; /** * Processes the results of a multi-file Stylelint lint run. * * Each result is expected to have a `source` property containing the absolute * file path of the linted file. Results without a source are skipped. The * returned map is keyed by file path. * * @param ruleMetadataSource Rule metadata source for documentation links. * @param linterResult The results returned by Stylelint. * @param logger The logger to use. * @param ruleCustomizations Optional rule customizations for severity overrides. */ export declare function processMultiFileLinterResult(ruleMetadataSource: RuleMetadataSource | undefined, linterResult: LinterResult, logger: Logger, ruleCustomizations?: RuleCustomization[]): MultiFileLintDiagnostics;