import * as React from 'react'; import List, { TransferListProps } from './List'; import Operation from './Operation'; import Search from './Search'; import './style/index.less'; export { TransferListProps } from './List'; export { TransferOperationProps } from './Operation'; export { TransferSearchProps } from './Search'; export declare type TransferDirection = 'left' | 'right'; export interface TransferItem { key: string; title: string; description?: string; disabled?: boolean; } export interface TransferProps { prefixCls?: string; className?: string; mode?: 'single' | 'multiple'; dataSource?: TransferItem[]; targetKeys?: string[]; selectedKeys?: string[]; render?: (record: TransferItem) => React.ReactNode | void; 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[]; operation?: string; showSearch?: boolean; filterOption?: (inputValue: any, item: any) => boolean; searchPlaceholder?: string; notFoundContent?: React.ReactNode; footer?: (props: TransferListProps) => React.ReactNode; body?: (props: TransferListProps) => React.ReactNode; rowKey?: (record: TransferItem) => string; onSearchChange?: (direction: TransferDirection, e: React.ChangeEvent) => void; lazy?: {} | boolean; onScroll?: (direction: TransferDirection, e: React.SyntheticEvent) => void; } export interface TransferLocale { titles: string[]; notFoundContent: string; searchPlaceholder: string; itemUnit: string; itemsUnit: string; } declare class Transfer extends React.Component { static List: typeof List; static Operation: typeof Operation; static Search: typeof Search; static defaultProps: TransferProps; static getDerivedStateFromProps(nextProps: TransferProps, prevState: any): any; separatedDataSource: { leftDataSource: TransferItem[]; rightDataSource: TransferItem[]; } | null; constructor(props: TransferProps); componentDidUpdate(prevProps: TransferProps): void; separateDataSource(props: TransferProps): { leftDataSource: TransferItem[]; rightDataSource: TransferItem[]; }; moveTo: (direction: TransferDirection) => void; moveToLeft: () => void; moveToRight: () => void; handleSelectChange(direction: TransferDirection, holder: string[]): void; handleSelectAll: (direction: TransferDirection, filteredDataSource: TransferItem[], checkAll: boolean) => void; handleLeftSelectAll: (filteredDataSource: TransferItem[], checkAll: boolean) => void; handleRightSelectAll: (filteredDataSource: TransferItem[], checkAll: boolean) => void; handleFilter: (direction: TransferDirection, e: React.ChangeEvent) => void; handleLeftFilter: (e: React.ChangeEvent) => void; handleRightFilter: (e: React.ChangeEvent) => void; handleClear: (direction: string) => void; handleLeftClear: () => void; handleRightClear: () => void; handleClose: (selectedItem: TransferItem) => void; handleSelect: (direction: TransferDirection, selectedItem: TransferItem, checked: boolean) => void; handleLeftSelect: (selectedItem: TransferItem, checked: boolean) => void; handleRightSelect: (selectedItem: TransferItem, checked: boolean) => void; handleScroll: (direction: TransferDirection, e: React.SyntheticEvent) => void; handleLeftScroll: (e: React.SyntheticEvent) => void; handleRightScroll: (e: React.SyntheticEvent) => void; getTitles: (transferLocale: TransferLocale) => string[]; getSelectedKeysName: (direction: TransferDirection) => "sourceSelectedKeys" | "targetSelectedKeys"; renderTransfer: (Locale: any) => JSX.Element; render(): JSX.Element; } export default Transfer;