import type { ComponentPropsWithoutRef, ReactNode } from "react"; import { type SessionDisplayStatus } from "../session-status-model.js"; import { type OpenGeniText } from "../messages/runtime.js"; /** A server status, or the display-only `blocked` (see `sessionDisplayStatus`). */ type SessionStatusValue = SessionDisplayStatus; export type SessionStatusMeta = { label: string; /** Token-backed color classes for the dot and tinted badge. */ dotClassName: string; badgeClassName: string; /** Live states breathe; terminal states hold still. */ pulse: boolean; }; export declare const SESSION_STATUS_META: (t: OpenGeniText) => Record; export type SessionStatusProps = { status: SessionStatusValue; /** Override the label ("Running" -> "Deploying", ...). */ label?: string | undefined; size?: "sm" | "md" | undefined; className?: string | undefined; }; /** Status badge with a breathing dot for live states. */ export declare function SessionStatus({ status, label, size, className }: SessionStatusProps): import("react").JSX.Element; export type StatusPillProps = ComponentPropsWithoutRef<"span"> & { size?: "sm" | "md" | undefined; /** * Leading dot. Omitted, it is a still dot in the text colour, sized for the * pill; `null` or `false` hides it. A replacement should use the same size * (`size-1` sm, `size-1.5` md). */ dot?: ReactNode; /** Colour classes (text, border, background). Geometry and type come from the pill. */ className?: string | undefined; }; /** * The pill shape every status badge shares: type, height, padding, border and * dot spacing. Use it for a status that is not a `SessionDisplayStatus` (the * header's Waiting pill) so it can never drift from the others. */ export declare function StatusPill({ size, dot, className, children, ...rest }: StatusPillProps): import("react").JSX.Element; export type StatusDotProps = { status: SessionStatusValue; className?: string | undefined; }; /** Just the dot — for dense rows and tiles. */ export declare function StatusDot({ status, className }: StatusDotProps): import("react").JSX.Element; export {};