import type { CheckCategory, CheckResult, CheckMeta, Grade } from './types.js'; /** * Weighted average across the checks that ran and apply. * * A check that reports `applicable: false` is excluded from both the numerator * and the denominator. Scoring a commerce-protocol check as zero on a personal * blog would say the blog is badly built, when the honest answer is that the * question does not arise. That distinction is what makes a low score * actionable: everything counted against a site is something the site could * have done. */ export declare function calculateOverallScore(results: CheckResult[], metas: CheckMeta[]): number; export declare function getGrade(score: number): Grade; /** * Score of one report area, over the checks in it that apply. * * `null` when the area has nothing applicable — a site with no protocol * surface at all has no protocols score, and reporting 0 there would say * the opposite of what the N/A results say individually. * * An overall number hides an area that is entirely broken: a site can * score 80 while every access check fails, because the other four areas * carry it. This is what `--fail-on-category` gates on, and what a report * grouped by area shows per group. */ export declare function categoryScore(results: CheckResult[], category: CheckCategory): number | null; //# sourceMappingURL=scorer.d.ts.map