import { PropsWithChildren, Ref } from 'react'; import { DataAttributes } from 'src/types'; /** * Possible semantic values. */ type SemanticIcon = 'valid' | 'invalid' | 'empty' | 'none'; /** * Badge variants. */ type Variants = 'badge' | 'tag' | 'dropdown' | 'popover'; /** * Describe item used for BadgeDropdown. */ export interface BadgeDropdownItem { id: string; label: string; } /** * Describe item used for BadgePopover. */ export interface BadgePopoverItem { id: string; label: string; } export type BadgeVariantType = { variant: T; } & P; export type BadgePrimitiveProps = { label: string; onClose?: () => void; ref: Ref; semanticIcon?: SemanticIcon; } & Partial; declare function BadgePrimitive({ children, 'data-testid': dataTestId, 'data-test': dataTest, label, onClose, ref, semanticIcon, }: PropsWithChildren): import("react/jsx-runtime").JSX.Element; export default BadgePrimitive;