import type { InputProps, InputValue } from '../input';
import type { PopupProps, PopupVisibleChangeContext } from '../popup';
import type { SelectInputProps, SelectInputValueChangeContext } from '../select-input';
import type { TagProps } from '../tag';
import type { TreeNodeModel, TreeProps } from '../tree';
import type { LNode, TreeOptionData } from '../../common';
export interface TypeTreeSelectProps<DataOption extends TreeOptionData = TreeOptionData> {
    autoWidth?: boolean;
    borderless?: boolean;
    clearable?: boolean;
    collapsedItems?: LNode<{
        value: DataOption[];
        collapsedSelectedItems: DataOption[];
        count: number;
    }>;
    data?: Array<DataOption>;
    disabled?: boolean;
    empty?: string | LNode;
    filter?: (filterWords: string, option: DataOption) => boolean;
    filterable?: boolean;
    inputProps?: InputProps;
    inputValue?: InputValue;
    defaultInputValue?: InputValue;
    loading?: boolean;
    loadingText?: string | LNode;
    max?: number;
    minCollapsedNum?: number;
    multiple?: boolean;
    placeholder?: string;
    popupProps?: PopupProps;
    popupVisible?: boolean;
    prefixIcon?: LNode;
    readonly?: boolean;
    selectInputProps?: SelectInputProps;
    size?: 'small' | 'medium' | 'large';
    status?: 'default' | 'success' | 'warning' | 'error';
    tagProps?: TagProps;
    tips?: string | LNode;
    treeProps?: TreeProps;
    value?: TreeSelectValue;
    defaultValue?: TreeSelectValue;
    valueDisplay?: string | LNode<{
        value: TreeSelectValue;
        onClose: (index: number, item?: any) => void;
    }>;
    valueType?: 'value' | 'object';
    onBlur?: (context: {
        value: TreeSelectValue;
        e: FocusEvent;
    }) => void;
    onChange?: (value: TreeSelectValue, context: {
        node: TreeNodeModel<DataOption>;
        trigger: TreeSelectValueChangeTrigger;
        e?: MouseEvent | KeyboardEvent;
    }) => void;
    onClear?: (context: {
        e: MouseEvent;
    }) => void;
    onFocus?: (context: {
        value: TreeSelectValue;
        e: FocusEvent;
    }) => void;
    onInputChange?: (value: InputValue, context?: SelectInputValueChangeContext) => void;
    onPopupVisibleChange?: (visible: boolean, context: PopupVisibleChangeContext) => void;
    onRemove?: (options: RemoveOptions<DataOption>) => void;
    onSearch?: (filterWords: string) => void;
}
export type TreeSelectValue = string | number | object | Array<TreeSelectValue>;
export type TreeSelectValueChangeTrigger = 'clear' | 'tag-remove' | 'backspace' | 'check' | 'uncheck';
export interface RemoveOptions<T> {
    value: string | number | object;
    data: T;
    e?: MouseEvent;
}
