import type { BaseOptionType, DefaultOptionType, FieldNames, MultipleCascaderProps as RcMultipleCascaderProps, SingleCascaderProps as RcSingleCascaderProps } from 'rc-cascader'; import * as React from 'react'; import type { SizeType } from '../config-provider/SizeContext'; import type { SelectCommonPlacement } from '../_util/motion'; import type { InputStatus } from '../_util/statusUtils'; import './style/index.less'; export { BaseOptionType, DefaultOptionType }; export declare type FieldNamesType = FieldNames; export declare type FilledFieldNamesType = Required; declare type SingleCascaderProps = Omit & { multiple?: false; }; declare type MultipleCascaderProps = Omit & { multiple: true; }; declare type UnionCascaderProps = SingleCascaderProps | MultipleCascaderProps; export declare type CascaderProps = UnionCascaderProps & { multiple?: boolean; size?: SizeType; disabled?: boolean; bordered?: boolean; placement?: SelectCommonPlacement; suffixIcon?: React.ReactNode; options?: DataNodeType[]; status?: InputStatus; }; export interface CascaderRef { focus: () => void; blur: () => void; } declare const Cascader: ((props: (Pick, "id" | "prefixCls" | "searchValue" | "onSearch" | "className" | "style" | "showSearch" | "tagRender" | "direction" | "maxLength" | "tabIndex" | "autoFocus" | "notFoundContent" | "placeholder" | "onClear" | "choiceTransitionName" | "disabled" | "loading" | "open" | "defaultOpen" | "onDropdownVisibleChange" | "getInputElement" | "getRawInputElement" | "maxTagTextLength" | "maxTagCount" | "maxTagPlaceholder" | "allowClear" | "showArrow" | "inputIcon" | "clearIcon" | "removeIcon" | "animation" | "transitionName" | "dropdownStyle" | "dropdownClassName" | "dropdownMatchSelectWidth" | "dropdownRender" | "dropdownAlign" | "placement" | "getPopupContainer" | "showAction" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "onPopupScroll" | "onInputKeyDown" | "onMouseEnter" | "onMouseLeave" | "onClick" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onChange" | "fieldNames" | "children" | "value" | "defaultValue" | "changeOnSelect" | "displayRender" | "showCheckedStrategy" | "expandTrigger" | "dropdownPrefixCls" | "loadData" | "popupVisible" | "popupClassName" | "dropdownMenuColumnStyle" | "popupPlacement" | "onPopupVisibleChange" | "expandIcon" | "loadingIcon"> & { multiple?: false | undefined; } & { multiple?: boolean | undefined; size?: SizeType; disabled?: boolean | undefined; bordered?: boolean | undefined; placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined; suffixIcon?: React.ReactNode; options?: OptionType[] | undefined; status?: "" | "warning" | "error" | undefined; } & { children?: React.ReactNode; } & { ref?: ((instance: CascaderRef | null) => void) | React.RefObject | null | undefined; }) | (Pick, "id" | "prefixCls" | "searchValue" | "onSearch" | "className" | "style" | "showSearch" | "tagRender" | "direction" | "maxLength" | "tabIndex" | "autoFocus" | "notFoundContent" | "placeholder" | "onClear" | "choiceTransitionName" | "disabled" | "loading" | "open" | "defaultOpen" | "onDropdownVisibleChange" | "getInputElement" | "getRawInputElement" | "maxTagTextLength" | "maxTagCount" | "maxTagPlaceholder" | "allowClear" | "showArrow" | "inputIcon" | "clearIcon" | "removeIcon" | "animation" | "transitionName" | "dropdownStyle" | "dropdownClassName" | "dropdownMatchSelectWidth" | "dropdownRender" | "dropdownAlign" | "placement" | "getPopupContainer" | "showAction" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "onPopupScroll" | "onInputKeyDown" | "onMouseEnter" | "onMouseLeave" | "onClick" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onChange" | "fieldNames" | "children" | "value" | "defaultValue" | "changeOnSelect" | "displayRender" | "showCheckedStrategy" | "expandTrigger" | "dropdownPrefixCls" | "loadData" | "popupVisible" | "popupClassName" | "dropdownMenuColumnStyle" | "popupPlacement" | "onPopupVisibleChange" | "expandIcon" | "loadingIcon"> & { multiple: true; } & { multiple?: boolean | undefined; size?: SizeType; disabled?: boolean | undefined; bordered?: boolean | undefined; placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined; suffixIcon?: React.ReactNode; options?: OptionType[] | undefined; status?: "" | "warning" | "error" | undefined; } & { children?: React.ReactNode; } & { ref?: ((instance: CascaderRef | null) => void) | React.RefObject | null | undefined; })) => React.ReactElement) & { displayName: string; SHOW_PARENT: "SHOW_PARENT"; SHOW_CHILD: "SHOW_CHILD"; }; export default Cascader;