import { BadgeProps } from '../atoms/Badge'; type BadgeVariant = NonNullable; /** * Legacy-parity status tone union — mirrors the legacy `@nar-bus/lena-ui-shared` * `StatusColor` type exactly so a consumer's existing `Record` * color maps (e.g. MDM `status-maps.ts`) type-check and drop straight into * `StatusBadge`'s `colorMap` without a rewrite. */ export type StatusColor = "success" | "warning" | "error" | "info" | "neutral" | "accent" | "purple"; /** Tones accepted in a StatusBadge color map: legacy StatusColor + package tones. */ export type StatusTone = StatusColor | "default" | "muted"; /** * Migration helper — maps a legacy `StatusColor` (or package tone) to a ui-kit * `Badge` variant. Exported so a consumer migrating a legacy `Record` * map to a bare ui-kit `Badge` (without StatusBadge) can reuse the exact same tone mapping. * * `neutral`/`muted` → `default` (the package's subdued grey). `accent`/`purple` have no * dedicated package tone yet — mapped to the nearest (`info`/`primary-subtle`). */ export declare function statusColorToBadgeVariant(color: StatusTone | string | undefined | null): BadgeVariant; export interface StatusBadgeProps extends Omit { /** Status/enum value to display (legacy `value` parity). Takes precedence over `status`. */ value?: string | null; /** Back-compat alias for `value` (existing package convention). Ignored when `value` is set. */ status?: string | null; /** Map status value → tone. Accepts legacy `StatusColor` names + package tones. Takes precedence over `statusMap`. */ colorMap?: Record; /** Back-compat alias for `colorMap`. Ignored when `colorMap` is set. */ statusMap?: Record; /** Map status value → display label (legacy `labelMap` parity). */ labelMap?: Record; /** Show the leading status dot. Default: false (matches legacy showDot default). */ showDot?: boolean; /** Pulse the dot for active/critical states (legacy `pulse` parity, boolean only). */ pulse?: boolean; } export declare function StatusBadge({ value, status, colorMap, statusMap, labelMap, showDot, pulse, style, ...props }: StatusBadgeProps): import("react").JSX.Element; export {}; //# sourceMappingURL=StatusBadge.d.ts.map