import { default as React } from 'react'; export type ActiveTableFilterObj = { /** The value, or list of values, of an active filter. */ value: number | number[] | string[]; /** The comparison value of an active filter. */ comparison_value: string; /** The label of the active filter. */ label: string; }; export type ActiveTableFilterProps = { [key: string]: ActiveTableFilterObj; }; export type TableFilterProps = { activeFilters: ActiveTableFilterProps; remove: (filter?: string) => void; /** Optional prop to add a test id to the TableFilter for QA testing */ qaTestId?: string; }; /** * TableFilter component displays active filters and allows users to remove them. * It also provides a button to clear all filters. * * @param {Object} props - The component props. * @param {Object} props.activeFilters - An object containing the active filters. * @param {Function} props.remove - A function to remove a specific filter or all filters. * * @returns {React.JSX.Element} The rendered TableFilter component. */ declare const TableFilter: ({ activeFilters, remove, qaTestId, }: TableFilterProps) => React.JSX.Element; export default TableFilter;