import { type MouseEvent, type ReactNode } from "react"; import type { SX } from "../../theme"; import { type IconName } from "../Icon"; type BaseProps = { title: ReactNode; color?: "grey" | "green" | "amber" | "purple" | "tomato" | "indigo"; size?: "large" | "medium" | "small"; maxWidth?: 150 | 250; icon?: IconName; selected?: boolean; sx?: SX; }; type InteractiveProps = { interactive?: never; onClick?: (event?: MouseEvent) => void; onClose?: () => void; onMouseEnter?: () => void; onMouseLeave?: () => void; /** Makes the badge content editable, fires onBlur when the value has changed */ onEdit?: (newTitle: string) => void | Promise; }; type NonInteractiveProps = { interactive: false; }; export type BadgeProps = BaseProps & (InteractiveProps | NonInteractiveProps); export declare const Badge: (props: BadgeProps & import("react").RefAttributes) => import("react").ReactElement> | null; export {};