import { ReactNode } from 'react'; import * as PropTypes from 'prop-types'; import { Props as NxFilterInputProps } from '../NxFilterInput/NxFilterInput'; import DataItem from '../../util/DataItem'; import { TooltipConfigProps } from '../../util/tooltipUtils'; type SelectionChangeHandler = (checked: boolean, id: T) => void; export interface NxTransferListDataItem extends DataItem { tooltip?: TooltipConfigProps | string | null; } export interface TransferListItemProps extends NxTransferListDataItem { checked: boolean; onChange?: SelectionChangeHandler | null; showReorderingButtons?: boolean | null; isFilteredItem?: boolean | null; onReorderItem?: (id: T, direction: 1 | -1) => void | null; isTopItem: boolean; isBottomItem: boolean; } export interface Props { label: Exclude; filterValue: string; onFilterChange: NxFilterInputProps['onChange']; showMoveAll?: boolean | null; onMoveAll?: (toMove: T[]) => void | null; items: NxTransferListDataItem[]; isSelected?: boolean | null; onItemChange?: SelectionChangeHandler | null; footerContent: ReactNode; filterFn?: ((filterStr: string, itemDisplayName: string) => boolean) | null; onReorderItem?: (id: T, direction: -1 | 1) => void | null; allowReordering?: boolean | null; } export declare const propTypes: { label: PropTypes.Validator>; filterValue: PropTypes.Validator; onFilterChange: PropTypes.Validator<(...args: any[]) => any>; isSelected: PropTypes.Requireable; onItemChange: PropTypes.Requireable<(...args: any[]) => any>; footerContent: PropTypes.Validator>; filterFn: PropTypes.Requireable<(...args: any[]) => any>; showMoveAll: PropTypes.Requireable; onMoveAll: PropTypes.Requireable<(...args: any[]) => any>; allowReordering: PropTypes.Requireable; onReorderItem: PropTypes.Requireable<(...args: any[]) => any>; }; export {}; //# sourceMappingURL=types.d.ts.map