import type { ComponentPropsWithRef, ReactNode } from 'react'; import { type RunStatusIconStatus } from './RunStatusIcon.js'; import { type BadgeVariant } from './StatusBadge.js'; /** Any other span attribute and the ref reach its element, so it can be a Tooltip's or a popover's * direct child. */ export interface StatusLabelProps extends Omit, 'children' | 'className'> { /** The state's name, such as "Running". */ children: ReactNode; /** The lamp's tone, lit; `off` shows it unlit. Ignored with `icon`. */ variant?: BadgeVariant | undefined; /** An unlit lamp, a hollow ring, for something off or not known, such as an offline agent. */ off?: boolean | undefined; /** A ping from the lamp, for something under way. */ pulse?: boolean | undefined; /** An icon in place of the lamp, such as a `RunStatusIcon`. */ icon?: ReactNode | undefined; className?: string | undefined; } /** A status: what state something is in, as a lamp or icon and the state's name, in muted text * with no fill. It sits in a status column or under a title, and looks the same for a run, a * resource or an agent. The name says the status, so the lamp or icon is hidden from assistive * technology and the status is not read twice. A long name wraps, its lamp beside the first line. * * Not for a fixed fact worth noticing, such as "Preview" (a flag: `StatusBadge`), or a label * someone gave it (a `Tag`). See "UI/Badges/Which one". */ export declare function StatusLabel({ children, variant, off, pulse, icon, className, ...rest }: StatusLabelProps): import("react").JSX.Element; /** A run's status in the run status icon's look: a status the server sent, or none for one it * has no look for. */ export declare function runStatusLook(status: string | null | undefined): RunStatusIconStatus; /** Names a run's status in words, from `strings.runStatus`: every status the run status icon * draws has a name, an error, a fault or a failure reads as failed, and no status reads as not * run. Only a status the icon doesn't know reads as `fallback` says, or as the server sent it. */ export declare function useRunStatusName(): (status: string | null | undefined, fallback?: (status: string | null | undefined) => string) => string; /** Any other span attribute and the ref reach its element, so it can be a Tooltip's or a popover's * direct child. */ export interface RunStatusLabelProps extends Omit { /** The run's status as the server sent it; one with no look shows no icon's shape. */ status: string | null | undefined; /** The name for a status the run status icon doesn't know; the status as sent by default. */ fallback?: ((status: string | null | undefined) => string) | undefined; } /** A run's status: the run status icon and its name, as a status (`StatusLabel`). A running or * canceling run's icon moves. See "UI/Badges/Which one". */ export declare function RunStatusLabel({ status, fallback, ...rest }: RunStatusLabelProps): import("react").JSX.Element;