import { TagProps } from 'react-aria-components'; import './FilterPill.scss'; import { Sizes } from '../../core/types'; import React from 'react'; export type FilterPillProps = { id: string; name: string; selected?: boolean; disabled?: boolean; }; export interface MyTagProps extends Omit { children?: React.ReactNode; allowsRemove?: boolean; size?: Sizes; } /** * FilterPill component that renders a group of selectable and removable tags with optional labels, descriptions, and error messages. * * @param {Object} props - The properties passed to the component. * @param {Array} props.options - An array of tag options, where each option defines the tag's name and various states (e.g., disabled). * @param {string} [props.label] - An optional label displayed above the tag group. * @param {States} [props.state] - An optional prop to render at the defined state. * @param {string} [props.description] - An optional description displayed below the label. * @param {Array} [props.defaultSelectedKeys] - An array of default selected keys in the tag group if no selected keys are provided. * @param {Array} [props.selectedKeys] - An array of currently selected keys in the tag group. * @param {function(Array): void} props.onSelectionChange - Callback function called when the selected keys change, receiving the new array of selected keys. * @param {function(Array): void} props.onRemoveChange - Callback function called when tags are removed, receiving the array of removed keys. * @param {string} [props.selectionMode='single'] - The selection mode for the tag group, either 'single' or 'multiple'. * @param {boolean} [props.allowsRemove=false] - If true, tags can be removed by the user. * @param {string} [props.size=Sizes.STANDARD] - The size of the tags, defaulting to `Sizes.STANDARD`. * @param {string} [props.errorMessage] - An optional error message displayed below the tag group if validation fails. * * @returns {JSX.Element|null} The rendered FilterPill component, or null if no options are provided. * */ export declare const FilterPill: (props: FilterPillProps | any) => import("react/jsx-runtime").JSX.Element; export default FilterPill;