import { type ColorTokens } from "../../style/index.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 shared status hues (so a degraded pill reads * the same amber as a warning badge), and the muted token for unknown. */ 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 }: { periods: UptimePeriod[]; height: number; tokens: ColorTokens; }): import("react").JSX.Element; //# sourceMappingURL=status-strip.d.ts.map