import type { RuleData, ScoreConfig, ScoreRule } from "./types"; /** evaluates an individual rule, normally you should use {@link calculateScore} */ export declare function evaluateRule(rule: ScoreRule, data: RuleData): { passed: boolean; score: number; }; /** @ignore */ export type ScoreResult = { score: number; category: string; categoryColour: string | null | undefined; diagnostics: { version: string; config: { id: string; rules: { id: string; name: string; passed: boolean; }[]; }; }; }; /** * the main function to calculate a score and category. * Might throw an error. */ export declare function calculateScore(ruleConfig: ScoreConfig, ruleInput: RuleData): Promise;