import type { ComponentPropsWithRef } from 'react'; import type { RunStatus } from '../engine.js'; import { type Tone } from './tone.js'; /** A status the icon shows: a run's, or one a host maps onto it, such as * `pending` for something queued and `warning` for something done with problems. */ export type RunStatusIconStatus = RunStatus | 'pending' | 'warning'; /** The tone a run status reads in, so a host's own mark for it, such as a lamp, matches the * icon: ``. */ export declare function runStatusTone(status: RunStatusIconStatus): Tone; /** Any other span attribute and the ref reach the icon's element, so it can be a Tooltip's or a * popover's direct child. */ export interface RunStatusIconProps extends Omit, 'children' | 'className'> { status: RunStatusIconStatus; /** Names the icon in place of `strings.dag.statusLabel`, for a host's own status * shown in a run's look, such as "Provisioning" as running. */ label?: string | undefined; /** Shows the name on hover and focus too, for an icon that stands without words. */ tooltip?: boolean | undefined; className?: string | undefined; } /** A run's, job's or step's status as an icon in its tone, beside the name of what ran. It * is named by `label`, or else `strings.dag.statusLabel`. To say the status in words beside it, * use `RunStatusLabel`. */ export declare function RunStatusIcon({ status, label: ownLabel, tooltip, className, ...rest }: RunStatusIconProps): import("react").JSX.Element;