/** * Pure status logic — the one place a free-form backend lifecycle string is * folded into the small `ServiceStatus` vocabulary, plus the default semantic * palette. No React, no DOM — unit-tested in isolation. */ import type { ServiceStatus, StatusPalette } from "./types.js"; /** * Normalize any lifecycle/health string to a status tone. Exact match first, * then a contained-substring fallback for compound strings (e.g. `1/2 running`). * Empty/unknown is honest `unknown` — never guessed up to `active`. */ export declare function normalizeServiceStatus(raw: string | undefined | null): ServiceStatus; /** * Default semantic status palette — tuned to read on both light and dark * surfaces (GitHub-family hues). Semantic, NOT brand; a consumer may override * per brand via the `statusPalette` prop on the components. */ export declare const DEFAULT_STATUS_PALETTE: Record; export declare const statusLabel: (s: ServiceStatus) => string; /** Resolve a status → its palette entry, honoring an override map. */ export declare function statusColors(status: ServiceStatus, override?: Partial>): StatusPalette; /** Whether a status should pulse (a live thing breathing / in-flight). */ export declare const statusPulses: (s: ServiceStatus) => boolean;