import React, { ComponentProps, ReactElement } from 'react'; import MuiChip from '@material-ui/core/Chip'; import { RcBaseProps, RcClassesProps, RcPaletteProp } from '../../foundation'; import { RcAvatarProps } from '../Avatar'; import { RcIconButtonProps } from '../Buttons/IconButton'; import { WithTooltipProps } from '../Tooltip'; declare type RcChipClassProp = RcClassesProps<'focused'>; declare type RcChipProps = { /** * color palette set, * * - variant: `default`: effect that active color when focus * - variant: `outlined`: effect whole tag color * * in `outlined` variant when only set color, that will use color to calculate default background color * - `lighten`: lighten `0.92` main color * - `darken`: darken `0.72` main color */ color?: RcPaletteProp; /** * color palette set, only work when variant is `outlined` * * effect background color when not have any interactive. */ backgroundColor?: RcPaletteProp; /** is that error chip */ error?: boolean; /** * If `true`, the component will be displayed in focused state. */ focused?: boolean; /** props apply on `deleteIcon` */ deleteIconProps?: RcIconButtonProps & WithTooltipProps; /** @deprecated should use `avatar` */ Avatar?: ReactElement; /** @deprecated should use deleteIconProps with `data-test-automation-id` */ deleteAutomationId?: string; /** @deprecated should use deleteIconProps with `title` */ deleteTooltip?: string; /** @deprecated should use `error` */ isError?: boolean; } & RcBaseProps, 'color' | 'size' | 'icon'> & RcChipClassProp; interface RcChipTypeMap { props: RcChipProps; defaultComponent: D; } declare const RcChip: (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & string & React.FunctionComponent) | (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & number & React.FunctionComponent) | (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & false & React.FunctionComponent) | (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & import("styled-components").Styles & React.FunctionComponent) | (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & import("styled-components").Keyframes & React.FunctionComponent) | (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & import("styled-components").StyledComponentClass & React.FunctionComponent) | (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & import("styled-components").InterpolationFunction> & React.FunctionComponent) | (import("@material-ui/core/OverridableComponent").OverridableComponent & { classKey: ""; }> & readonly (string | number | false | import("styled-components").Styles | import("styled-components").Keyframes | import("styled-components").StyledComponentClass | import("styled-components").InterpolationFunction> | readonly import("styled-components").FlattenInterpolation>[] | null | undefined)[] & React.FunctionComponent); export { RcChip }; export type { RcChipProps };