import React from 'react'; import { type SelectOption } from '../../form-engine'; /** * Props for FilterList component */ interface FilterListProps { /** Array of options to display in the list */ options: T[]; /** Selected value for single-select mode */ selectedValue?: string; /** Array of selected values for multi-select mode */ selectedValues?: string[]; /** Input name attribute for radio buttons (required for single-select) */ name?: string; /** Whether the list allows multiple selections */ isMultiSelect?: boolean; /** Handler function called when a selection changes */ onChange: (value: string) => void; /** Prefix for input IDs to ensure uniqueness */ idPrefix: string; /** ItemsPerPage, the options list is paginated */ itemsPerPage?: number; } /** * FilterList component for displaying filterable, searchable lists of options * Supports both single-select (radio buttons) and multi-select (checkboxes) * Generic type T extends SelectOption to allow for custom option types * * @example * ```tsx * // Single-select mode * * * // Multi-select mode * * ``` */ declare const FilterList: React.FC; export default FilterList; export type { FilterListProps };