import type { ConfidenceScore, Coordinates, SourceResult } from '../types/index.js'; /** * Count sources whose scope includes this location — i.e., the denominator * used by `calculateConfidence`. Exposed so callers (e.g., configHints) can * compute each source's proportional contribution to the overall score. */ export declare function countApplicableSources(coords: Coordinates): number; /** * Confidence = fraction of location-applicable sources that returned fresh ok data. * * overall = okCount / applicableCount * * Sources that don't apply to the query location (e.g., NOAA NWS outside the US) * are excluded from both numerator and denominator so geography doesn't penalise * the score. A source is "ok" only if `ok === true` AND its data is not stale * (age ≤ `STALE_MULTIPLIER × freshnessMinutes`). */ export declare function calculateConfidence(results: SourceResult[], coords: Coordinates): ConfidenceScore;