import * as React from 'react'; import * as PropTypes from 'prop-types'; import List, { TransferListProps } from './list'; import Operation from './operation'; import Search from './search'; export { TransferListProps } from './list'; export { TransferOperationProps } from './operation'; export { TransferSearchProps } from './search'; export declare type TransferDirection = 'left' | 'right'; declare type TransferRender = (record: TransferItem) => React.ReactNode; export interface TransferItem { key: string; title: string; description?: string; disabled?: boolean; } export interface TransferProps { prefixCls?: string; className?: string; disabled?: boolean; dataSource: TransferItem[]; targetKeys?: string[]; selectedKeys?: string[]; render?: TransferRender; onChange?: (targetKeys: string[], direction: string, moveKeys: any) => void; onSelectChange?: (sourceSelectedKeys: string[], targetSelectedKeys: string[]) => void; style?: React.CSSProperties; listStyle?: React.CSSProperties; operationStyle?: React.CSSProperties; titles?: string[]; operations?: string[]; showSearch?: boolean; filterOption?: (inputValue: any, item: any) => boolean; searchPlaceholder?: string; notFoundContent?: React.ReactNode; locale?: {}; footer?: (props: TransferListProps) => React.ReactNode; body?: (props: TransferListProps) => React.ReactNode; rowKey?: (record: TransferItem) => string; onSearchChange?: (direction: TransferDirection, e: React.ChangeEvent) => void; onSearch?: (direction: TransferDirection, value: string) => void; lazy?: {} | boolean; onScroll?: (direction: TransferDirection, e: React.SyntheticEvent) => void; } export interface TransferLocale { titles: string[]; notFoundContent: string; searchPlaceholder: string; itemUnit: string; itemsUnit: string; } export default class Transfer extends React.Component { static List: typeof List; static Operation: typeof Operation; static Search: typeof Search; static defaultProps: { dataSource: never[]; render: TransferRender; locale: {}; showSearch: boolean; }; static propTypes: { prefixCls: PropTypes.Requireable; disabled: PropTypes.Requireable; dataSource: PropTypes.Validator; render: PropTypes.Requireable<(...args: any[]) => any>; targetKeys: PropTypes.Requireable; onChange: PropTypes.Requireable<(...args: any[]) => any>; height: PropTypes.Requireable; style: PropTypes.Requireable; listStyle: PropTypes.Requireable; operationStyle: PropTypes.Requireable; className: PropTypes.Requireable; titles: PropTypes.Requireable; operations: PropTypes.Requireable; showSearch: PropTypes.Requireable; filterOption: PropTypes.Requireable<(...args: any[]) => any>; searchPlaceholder: PropTypes.Requireable; notFoundContent: PropTypes.Requireable; locale: PropTypes.Requireable; body: PropTypes.Requireable<(...args: any[]) => any>; footer: PropTypes.Requireable<(...args: any[]) => any>; rowKey: PropTypes.Requireable<(...args: any[]) => any>; lazy: PropTypes.Requireable; }; separatedDataSource: { leftDataSource: TransferItem[]; rightDataSource: TransferItem[]; } | null; constructor(props: TransferProps); componentWillReceiveProps(nextProps: TransferProps): void; separateDataSource(props: TransferProps): { leftDataSource: TransferItem[]; rightDataSource: TransferItem[]; }; moveTo: (direction: "left" | "right") => void; moveToLeft: () => void; moveToRight: () => void; handleSelectChange(direction: TransferDirection, holder: string[]): void; handleSelectAll: (direction: "left" | "right", filteredDataSource: TransferItem[], checkAll: boolean) => void; handleLeftSelectAll: (filteredDataSource: TransferItem[], checkAll: boolean) => void; handleRightSelectAll: (filteredDataSource: TransferItem[], checkAll: boolean) => void; handleFilter: (direction: "left" | "right", e: React.ChangeEvent) => void; handleLeftFilter: (e: React.ChangeEvent) => void; handleRightFilter: (e: React.ChangeEvent) => void; handleClear: (direction: "left" | "right") => void; handleLeftClear: () => void; handleRightClear: () => void; handleSelect: (direction: "left" | "right", selectedItem: TransferItem, checked: boolean) => void; handleLeftSelect: (selectedItem: TransferItem, checked: boolean) => void; handleRightSelect: (selectedItem: TransferItem, checked: boolean) => void; handleScroll: (direction: "left" | "right", e: React.SyntheticEvent) => void; handleLeftScroll: (e: React.SyntheticEvent) => void; handleRightScroll: (e: React.SyntheticEvent) => void; getTitles(transferLocale: TransferLocale): string[]; getSelectedKeysName(direction: TransferDirection): "sourceSelectedKeys" | "targetSelectedKeys"; getLocale: (transferLocale: TransferLocale, renderEmpty: (componentName?: string | undefined) => React.ReactNode) => { notFoundContent: any; searchPlaceholder: string; titles: string[]; itemUnit: string; itemsUnit: string; } | { notFoundContent: any; searchPlaceholder: string; titles: string[]; itemUnit: string; itemsUnit: string; }; renderTransfer: (transferLocale: TransferLocale) => JSX.Element; render(): JSX.Element; }