import { SelectProps } from 'antd'; import { DefaultOptionType } from 'antd/es/select'; export type SelectWithAllProps = { options: DefaultOptionType[]; onChange?: (value: any[]) => void; onDeselect?: (value: string | undefined, options: string[]) => void; hideSelectedOptions?: boolean; value?: (string | number)[]; maxCount?: number; ref?: React.RefObject; locale?: { selectAll: string; deselectAll: string; maxTagPlaceholder: string; }; selectProps?: Omit; }; export type HandleAllSelectParams = { value: string; selectedValues: string[]; setSelectedValues: (values: string[]) => void; handleOnChange: (values: string[]) => void; filteredOptions: DefaultOptionType[]; options: DefaultOptionType[]; maxCount?: number; }; export type HandleAllDeselectParams = { value: string; selectedValues: string[]; setSelectedValues: (values: string[]) => void; filteredOptions: DefaultOptionType[]; handleOnChange: (values: string[]) => void; onDeselect?: (value: string | undefined, options: string[]) => void; }; export type DisplayValueType = { key?: React.Key; value?: string; label?: React.ReactNode; title?: React.ReactNode; disabled?: boolean; };