import type * as React from 'react'; import type { PolymorphicTag, PrimitivePropsWithRef } from '../utils/primitive.cjs'; /** The cancelable `CustomEvent` a {@link BadgeProps.onDelete} handler receives when a badge asks to be removed. */ export type BadgeDeleteEvent = CustomEvent; /** @internal Shared state distributed from {@link Badge} to its parts via context. */ export interface BadgeContextValue { /** The badge's own text, used to name the delete button and the removal announcement. */ label: string; /** The word the delete button's generated name is built from — "Remove