import { LitElement } from 'lit'; import type { ConfidenceLevel, ConfidenceVariant } from '../../types/index.js'; /** * @tag loquix-confidence-indicator * @summary Visualises an assistant confidence score (0..1) as a bar / dots / badge / numeric. * * Auto-derives `level` (`low` / `medium` / `high`) from `value` using `low-threshold` * and `high-threshold`. If thresholds are invalid or inverted, both reset to defaults * (0.4 / 0.75) so the derived level still tracks the value. Setting `level` explicitly * overrides the derived value. * * @csspart meter - The host element acts as the meter wrapper. * @csspart track - The bar variant track. * @csspart fill - The bar variant fill. * @csspart dot - A dot in the dots variant. * @csspart value - The numeric value text. * @csspart label - The label text. * * @cssprop [--loquix-conf-low-bg] - Low-confidence background. * @cssprop [--loquix-conf-low-color] - Low-confidence foreground. * @cssprop [--loquix-conf-low-fill] - Low-confidence solid fill (bar/dot). * @cssprop [--loquix-conf-med-bg] - Medium-confidence background. * @cssprop [--loquix-conf-med-color] - Medium-confidence foreground. * @cssprop [--loquix-conf-med-fill] - Medium-confidence solid fill (bar/dot). * @cssprop [--loquix-conf-high-bg] - High-confidence background. * @cssprop [--loquix-conf-high-color] - High-confidence foreground. * @cssprop [--loquix-conf-high-fill] - High-confidence solid fill (bar/dot). */ export declare class LoquixConfidenceIndicator extends LitElement { static styles: import("lit").CSSResult[]; private _localize; /** Confidence score in [0, 1]. Values outside the range are clamped. */ value: number; /** Visual variant. */ variant: ConfidenceVariant; /** Optional override for the derived level. When set, beats the threshold-based derivation. */ level?: ConfidenceLevel; /** Optional textual label. Falls back to a localised default for `aria-label`. */ label?: string; /** Lower threshold — `value < lowThreshold` → `low`. Invalid values fall back to 0.4. */ lowThreshold: number; /** Upper threshold — `value >= highThreshold` → `high`. Invalid values fall back to 0.75. */ highThreshold: number; /** Whether to render the numeric percentage alongside the visual. */ showValue: boolean; private _deriveLevel; /** * The currently effective confidence level, derived from `value`/thresholds * unless `level` is explicitly set. Exposed for tests and consumers who need * to read the derived value without recomputing it themselves. */ get effectiveLevel(): ConfidenceLevel; protected render(): import("lit").TemplateResult<1>; } //# sourceMappingURL=loquix-confidence-indicator.d.ts.map