import { type ColorTokens } from "../../style/index.js"; import type { AnatomyTarget } from "../../style/anatomy.js"; export interface UptimePeriod { /** Stable identity, used as the React key when present. */ id?: string | number; /** Names the period in the accessible summary (e.g. "Mar 4"). */ label?: string; down?: boolean; degraded?: boolean; unknown?: boolean; } export type PeriodStatus = "operational" | "degraded" | "down" | "unknown"; /** Status precedence, first match wins; an unmarked period is operational. */ export declare function periodStatus(p: UptimePeriod): PeriodStatus; /** * The pill fill per status: the solid status colors (statusColors' dot, so a degraded * pill reads the same warning as a warning badge), and for unknown the v4 hand-off's * no-data period, the operational green at .3. */ export declare function statusColor(tokens: ColorTokens, status: PeriodStatus): string; /** * The strip's accessible summary: the label, the period count, and per-status * tallies with zero counts omitted ("API uptime, 90 periods: 87 operational, * 2 degraded, 1 down"). Pure, exported for tests. */ export declare function statusSummary(periods: UptimePeriod[], label?: string): string; /** * The raw pill row. Decorative on its own: the consumer wraps it in (or * beside) a node carrying the `statusSummary` as an accessible name. */ export declare function StatusStrip({ periods, height, tokens, anatomy }: { periods: UptimePeriod[]; height: number; tokens: ColorTokens; anatomy?: { degraded?: AnatomyTarget; healthy?: AnatomyTarget; }; }): import("react").JSX.Element; //# sourceMappingURL=status-strip.d.ts.map