/**
 * Code Quality dimension — health-side adapter over the canonical
 * quality scorer.
 *
 * Translates `ScoreInput { metrics, capabilities }` into the
 * `QualityScoreInput` partition consumed by `scoreQualityFromInput`,
 * then wraps the resulting score in a full `DimensionScore` (status +
 * details + metrics envelope) for the health audit rollup.
 *
 * D123 closure: this file used to delegate to a separate
 * `scoreQuality` in `analyzers/scoring.ts` while the standalone
 * quality report computed `computeSlopScore` from a different signal
 * set. Same repo could surface as health.CodeQuality 22/100 and
 * quality-review.SlopScore 45/100 — customer-visible contradiction.
 * The canonical formula now lives in `quality/scoring.ts`; both
 * surfaces compute the same number from the same partitioned inputs.
 */
import { type QualityScoreInput } from '../../scoring';
import { DimensionScore, ScoreInput } from '../types';
/**
 * Build the canonical `QualityScoreInput` from the health-side
 * `ScoreInput`. Each field maps to its data source:
 *
 *   - Lint counts ← `capabilities.lint.counts`
 *     (critical + high → errors). Availability is "did any pack
 *     produce a `LintResult`" — i.e. `c.lint !== undefined`.
 *   - Hygiene markers + stale files + mixed-language flag +
 *     comment ratio ← `metrics.*`. Plumbed into HealthMetrics by
 *     the cache builder so both consumer paths land on the same
 *     values (the standalone Quality report reads them off the
 *     same cached envelope).
 *   - File-size + filesystem-walked + density-source metrics
 *     ← `metrics.*`.
 *   - Duplication, structural ← `capabilities.{duplication,
 *     structural}`. Availability is "did the capability dispatch
 *     return an envelope" — same shape as lint.
 */
export declare function toQualityScoreInput(input: ScoreInput): QualityScoreInput;
/**
 * Score-only adapter for action ranking. The health remediation
 * planner builds `RemediationAction<ScoreInput>` patches and calls
 * `rank()` with a per-dimension scorer that maps `ScoreInput` to
 * `{ score }`. Mirrors the `scoreSecurityFromScoreInput` shim so
 * `health/actions.ts` stays symmetric across dimensions.
 */
export declare function scoreQualityFromScoreInput(input: ScoreInput): {
    score: number;
};
/**
 * Health audit's Code Quality dimension entry point. Produces the
 * `DimensionScore` consumed by `health.ts:analyzeHealthInternal` for
 * the dimension rollup, the dashboard summary, and the agent report.
 */
export declare function scoreQualityDimension(input: ScoreInput): DimensionScore;
//# sourceMappingURL=shallow.d.ts.map