import * as react20 from "react"; import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from "react"; import { IconData } from "@equinor/eds-icons"; //#region src/molecules/Chip/Chip.d.ts interface BaseChipProps { children: ReactNode; variant?: 'default' | 'white' | 'warning' | 'error' | 'blue' | 'yellow' | 'purple' | 'pink' | 'green' | 'highContrast'; leadingIconData?: IconData; } interface InteractiveChipBase { disabled?: boolean; selected?: boolean; locked?: boolean; } type ClickableChipProps = BaseChipProps & InteractiveChipBase & { onClick: (event: MouseEvent | KeyboardEvent) => void; onDelete?: undefined; }; type DeletableChipProps = BaseChipProps & InteractiveChipBase & { onClick?: undefined; onDelete: (event: MouseEvent | KeyboardEvent) => void; }; type ChipProps = Omit, 'onClick'> & (ClickableChipProps | DeletableChipProps); declare const Chip: react20.ForwardRefExoticComponent>; //#endregion export { BaseChipProps, Chip, ClickableChipProps, DeletableChipProps };