import React from 'react'; import { TransferListProps } from './list'; import { TransferListBodyProps } from './list-body'; import { PaginationType, TransferDirection, TransferItem, TransferRender, TransferRenderParam } from './interface'; export interface TransferProps { prefixCls?: string; className?: string; disabled?: boolean; dataSource?: TransferItem[]; targetKeys?: string[]; selectedKeys?: string[]; render?: TransferRender; onChange?: (targetKeys: string[], direction: string, moveKeys: string[]) => void; onSelectChange?: (sourceSelectedKeys: string[], targetSelectedKeys: string[]) => void; style?: React.CSSProperties; listStyle?: ((style: TransferRenderParam) => React.CSSProperties) | React.CSSProperties; operationStyle?: React.CSSProperties; noDataContent?: ((param: TransferRenderParam) => React.ReactNode) | React.ReactNode; titles?: string[]; operations?: string[]; searchPlaceholder?: string[]; showSearch?: boolean; filterOption?: (inputValue: string, item: TransferItem) => boolean; rowKey?: (record: TransferItem) => string; onSearch?: (direction: TransferDirection, value: string) => void; children?: (props: TransferListBodyProps) => React.ReactNode; showSelectAll?: boolean; oneWay?: boolean; pagination?: PaginationType; footer?: (props: TransferListProps) => React.ReactNode; } export interface ITransferRef { clearSearch: (position?: 'left' | 'right') => void; } declare const Transfer: React.ForwardRefExoticComponent>; export default Transfer;