import type { CheckboxProps } from '../checkbox';
import type { PageInfo, PaginationProps } from '../pagination';
import type { InputProps } from '../input';
import type { KeysType, LNode } from '../../common';
export interface TypeTransferProps<T extends DataOption = DataOption> {
    checkboxProps?: CheckboxProps;
    checked?: Array<TransferValue>;
    defaultChecked?: Array<TransferValue>;
    data?: Array<T>;
    direction?: 'left' | 'right' | 'both';
    disabled?: boolean | Array<boolean>;
    empty?: EmptyType | Array<EmptyType> | LNode;
    footer?: Array<string | LNode> | LNode<{
        type: TransferListType;
    }>;
    keys?: KeysType;
    operation?: Array<string | LNode> | LNode<{
        direction: 'left' | 'right';
    }>;
    pagination?: PaginationProps | Array<PaginationProps>;
    search?: SearchOption | Array<SearchOption>;
    showCheckAll?: boolean | Array<boolean>;
    targetSort?: 'original' | 'push' | 'unshift';
    title?: Array<TitleType> | LNode<{
        type: TransferListType;
    }>;
    transferItem?: LNode<TransferItem<T>>;
    value?: Array<TransferValue>;
    defaultValue?: Array<TransferValue>;
    onChange?: (targetValue: Array<TransferValue>, context: TargetParams) => void;
    onCheckedChange?: (options: CheckedOptions) => void;
    onPageChange?: (page: PageInfo, context: {
        type: TransferListType;
    }) => void;
    onScroll?: (options: {
        e: Event;
        bottomDistance: number;
        type: TransferListType;
    }) => void;
    onSearch?: (options: SearchContext) => void;
}
export type EmptyType = string | LNode;
export type SearchOption = boolean | InputProps;
export type TitleType = string | LNode;
export type TransferListType = 'source' | 'target';
export interface TransferItem<T extends DataOption = DataOption> {
    data: T;
    index: number;
    type: TransferListType;
}
export interface TargetParams {
    type: TransferListType;
    movedValue: Array<TransferValue>;
}
export interface CheckedOptions {
    checked: Array<TransferValue>;
    sourceChecked: Array<TransferValue>;
    targetChecked: Array<TransferValue>;
    type: TransferListType;
}
export interface SearchContext {
    query: string;
    type: TransferListType;
    trigger: 'input' | 'enter';
    e: InputEvent | KeyboardEvent;
}
export type DataOption = {
    label?: string;
    value?: TransferValue;
    disabled?: boolean;
} & Record<string, any>;
export type TransferValue = string | number;
