import * as React from 'react'; import RcTreeSelect, { TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD, TreeSelectProps as RcTreeSelectProps } from 'rc-tree-select'; import { ConfigConsumerProps } from '../config-provider'; import { SizeType } from '../config-provider/SizeContext'; declare type RawValue = string | number; export interface LabeledValue { key?: string; value: RawValue; label: React.ReactNode; } export declare type SelectValue = RawValue | RawValue[] | LabeledValue | LabeledValue[]; export interface TreeSelectProps extends Omit, 'showTreeIcon' | 'treeMotion' | 'inputIcon' | 'mode' | 'getInputElement' | 'backfill'> { suffixIcon?: React.ReactNode; size?: SizeType; bordered?: boolean; } declare class TreeSelect extends React.Component, {}> { static TreeNode: React.FC; static SHOW_ALL: typeof SHOW_ALL; static SHOW_PARENT: typeof SHOW_PARENT; static SHOW_CHILD: typeof SHOW_CHILD; static defaultProps: { transitionName: string; choiceTransitionName: string; bordered: boolean; }; selectRef: React.RefObject>; constructor(props: TreeSelectProps); focus(): void; blur(): void; renderTreeSelect: ({ getPopupContainer: getContextPopupContainer, getPrefixCls, renderEmpty, direction, virtual, dropdownMatchSelectWidth, }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export { TreeNode }; export default TreeSelect;