import * as React from 'react'; import type { BaseOptionType, DefaultOptionType, FieldNames, MultipleCascaderProps as RcMultipleCascaderProps, SingleCascaderProps as RcSingleCascaderProps } from 'rc-cascader'; import type { SelectCommonPlacement } from '../_util/motion'; import type { InputStatus } from '../_util/statusUtils'; import type { SizeType } from '../config-provider/SizeContext'; export type { BaseOptionType, DefaultOptionType }; export type FieldNamesType = FieldNames; export type FilledFieldNamesType = Required; declare const SHOW_CHILD: "SHOW_CHILD", SHOW_PARENT: "SHOW_PARENT"; type SingleCascaderProps = Omit, 'checkable' | 'options'> & { multiple?: false; }; type MultipleCascaderProps = Omit, 'checkable' | 'options'> & { multiple: true; }; type UnionCascaderProps = SingleCascaderProps | MultipleCascaderProps; export type CascaderProps = UnionCascaderProps & { multiple?: boolean; size?: SizeType; /** * @deprecated `showArrow` is deprecated which will be removed in next major version. It will be a * default behavior, you can hide it by setting `suffixIcon` to null. */ showArrow?: boolean; disabled?: boolean; bordered?: boolean; placement?: SelectCommonPlacement; suffixIcon?: React.ReactNode; options?: DataNodeType[]; status?: InputStatus; autoClearSearchValue?: boolean; rootClassName?: string; popupClassName?: string; /** @deprecated Please use `popupClassName` instead */ dropdownClassName?: string; }; export interface CascaderRef { focus: () => void; blur: () => void; } declare const Cascader: ((props: React.PropsWithChildren> & { ref?: React.Ref | undefined; }) => React.ReactElement) & { displayName: string; SHOW_PARENT: typeof SHOW_PARENT; SHOW_CHILD: typeof SHOW_CHILD; _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel; }; declare const PurePanel: (props: any) => React.JSX.Element; export default Cascader;