import React from 'react'; import { TransferItem, TransferProps as AntdTransferProps, TransferDirection, TransferLocale, KeyWise } from 'antd/lib/transfer/index'; import List from './List'; import Search from './Search'; import { RenderEmptyHandler } from '../config-provider'; export type { TransferListProps } from './List'; export type { TransferOperationProps } from 'antd/lib/transfer/operation'; export type { TransferSearchProps } from 'antd/lib/transfer/search'; export type { TransferDirection, RenderResultObject, RenderResult, TransferItem, KeyWise, KeyWiseTransferItem, SelectAllLabel, TransferLocale } from 'antd/es/transfer'; export declare type TransferProps = AntdTransferProps; interface TransferState { sourceSelectedKeys: string[]; targetSelectedKeys: string[]; } declare class Transfer extends React.Component, TransferState> { static List: typeof List; static Operation: ({ disabled, moveToLeft, moveToRight, leftArrowText, rightArrowText, leftActive, rightActive, className, style, direction, oneWay }: import("./Operation").TransferOperationProps) => JSX.Element; static Search: typeof Search; static defaultProps: { dataSource: any[]; locale: {}; showSearch: boolean; listStyle: () => void; }; static getDerivedStateFromProps({ selectedKeys, targetKeys, pagination, children }: TransferProps): { sourceSelectedKeys: string[]; targetSelectedKeys: string[]; }; separatedDataSource: { leftDataSource: RecordType[]; rightDataSource: RecordType[]; } | null; constructor(props: TransferProps); setStateKeys: (direction: TransferDirection, keys: string[] | ((prevKeys: string[]) => string[])) => void; getTitles(transferLocale: TransferLocale): React.ReactNode[]; getLocale: (transferLocale: TransferLocale, renderEmpty: RenderEmptyHandler) => { titles: React.ReactNode[]; notFoundContent: React.ReactNode; searchPlaceholder: string; itemUnit: string; itemsUnit: string; remove: string; selectAll: string; selectCurrent: string; selectInvert: string; removeAll: string; removeCurrent: string; }; moveTo: (direction: TransferDirection) => void; moveToLeft: () => void; moveToRight: () => void; onItemSelectAll: (direction: TransferDirection, selectedKeys: string[], checkAll: boolean) => void; onLeftItemSelectAll: (selectedKeys: string[], checkAll: boolean) => void; onRightItemSelectAll: (selectedKeys: string[], checkAll: boolean) => void; handleFilter: (direction: TransferDirection, e: React.ChangeEvent) => void; handleLeftFilter: (e: React.ChangeEvent) => void; handleRightFilter: (e: React.ChangeEvent) => void; handleClear: (direction: TransferDirection) => void; handleLeftClear: () => void; handleRightClear: () => void; onItemSelect: (direction: TransferDirection, selectedKey: string, checked: boolean) => void; onLeftItemSelect: (selectedKey: string, checked: boolean) => void; onRightItemSelect: (selectedKey: string, checked: boolean) => void; onRightItemRemove: (selectedKeys: string[]) => void; handleScroll: (direction: TransferDirection, e: React.SyntheticEvent) => void; handleLeftScroll: (e: React.SyntheticEvent) => void; handleRightScroll: (e: React.SyntheticEvent) => void; handleSelectChange(direction: TransferDirection, holder: string[]): void; handleListStyle: (listStyle: TransferProps['listStyle'], direction: TransferDirection) => React.CSSProperties; separateDataSource(): { leftDataSource: KeyWise[]; rightDataSource: KeyWise[]; }; renderTransfer: (transferLocale: TransferLocale) => JSX.Element; render(): JSX.Element; } export { Transfer }; export default Transfer;