import { type ReactNode } from 'react'; import { Text, View, type TextProps } from 'react-native'; import { type IChipProps } from '@cdx-ui/primitives'; import { type AvatarProps } from '../Avatar'; import { type IconProps } from '../Icon'; import { type IconSlotPosition } from '../../utils/positionToDataIcon'; import { type ChipVariantProps } from './styles'; export type ChipVariant = 'subtle' | 'outline'; /** @deprecated Use {@link ChipVariant} (`'subtle'`) instead. */ export type ChipVariantTint = 'tint'; export type ChipColor = 'neutral' | 'action' | 'danger' | 'warning' | 'success' | 'info'; /** @deprecated Use {@link ChipColor} (`'neutral'`) instead. */ export type ChipColorDefault = 'default'; export interface ChipProps extends IChipProps, Omit { /** * Visual style variant. * @default 'subtle' */ variant?: ChipVariant /** @deprecated Use `'subtle'` instead. */ | 'tint'; /** * Color theme applied to the chip surface and content. * @default 'neutral' */ color?: ChipColor /** @deprecated Use `'neutral'` instead. */ | 'default'; className?: string; children?: ReactNode; } declare const ChipRoot: import("react").ForwardRefExoticComponent>; export interface ChipLabelProps extends TextProps { asChild?: boolean; className?: string; children?: ReactNode; } declare const ChipLabel: import("react").ForwardRefExoticComponent>; export interface ChipIconProps extends Omit { asChild?: boolean; /** * Forge icon component to render. Required unless `asChild` is set, in which * case the consumer's substituted element is rendered instead. */ as?: IconProps['as']; /** * Position hint that emits `data-icon="inline-start"` or `data-icon="inline-end"`. * CVA uses this attribute to apply leading/trailing margin offsets logically * (RTL-aware). Omit when the icon is freely positioned within a custom layout. */ position?: IconSlotPosition; } declare const ChipIcon: { ({ asChild, className, style, as, position, ...props }: ChipIconProps): import("react/jsx-runtime").JSX.Element | null; displayName: string; }; export interface ChipAvatarProps extends Omit { } declare const ChipAvatar: { ({ className, style, children, ...props }: ChipAvatarProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; type ChipCompoundComponent = typeof ChipRoot & { Label: typeof ChipLabel; Icon: typeof ChipIcon; Avatar: typeof ChipAvatar; }; export declare const Chip: ChipCompoundComponent; export { type ChipVariantProps } from './styles'; //# sourceMappingURL=index.d.ts.map