/** * @fileoverview Shared Open Charge Map attribution string, the status-availability classifier, and * the reliability-note helper — plain-prose caveats derived from observable facts (verification age, * operational flag, status availability, placeholder 0,0 coordinates, fault-vs-positive check-in * counts). No synthetic score (per the no-fabricated-signal rule). * @module services/openchargemap/attribution */ import type { NormalizedComment } from './types.js'; /** Mandatory CC BY 4.0 attribution, surfaced in every tool's output. */ export declare const ATTRIBUTION = "Station data \u00A9 Open Charge Map contributors, licensed under CC BY 4.0 (openchargemap.org)."; /** * How usable a registry status says the station is right now, independent of OCM's `IsOperational` * boolean. Only the two statuses whose title contradicts that boolean are classified; every other * status agrees with the flag and returns undefined so the flag speaks for itself. */ export declare function statusAvailability(statusTypeId: number | undefined): 'unavailable' | 'partial' | undefined; /** * True when a comment reports a bad visit. The check-in outcome is the primary signal — OCM marks * all but one of its 18 outcomes positive or negative ("Did Not Visit Location" carries no verdict), * and a failed charge is routinely filed under the "General Comment" type. A fault-report comment * type still counts on its own, since it flags a problem even when the visitor recorded a positive * or no check-in. Shared with the comment renderers so a row this counts is never left unlisted. */ export declare function isFaultComment(c: { commentType?: string | undefined; checkinStatusIsPositive?: boolean | undefined; }): boolean; /** * Compose a plain-prose reliability caveat from observable facts, or undefined when there is * nothing to flag (status fresh, operational, no fault reports). */ export declare function buildReliabilityNote(input: { status: string | undefined; statusTypeId?: number | undefined; isOperational: boolean | undefined; dateLastVerified: string | null | undefined; comments: NormalizedComment[] | undefined; coordinates?: { latitude: number; longitude: number; }; }): string | undefined; //# sourceMappingURL=attribution.d.ts.map