import * as React from 'react'; import type { RequestConfig } from "../_util/type"; import type { BaseSelectRef } from '../select/BaseSelect'; import type { BaseOptionType, CascaderProps, DefaultOptionType, FieldNames, MultiValueType, SingleValueType } from './interface'; import { SHOW_CHILD, SHOW_PARENT } from './utils/commonUtil'; export type InternalValueType = SingleValueType | MultiValueType | DefaultOptionType[] | DefaultOptionType[][]; export interface InternalFieldNames extends Required { key: string; } export type InternalCascaderProps = Omit & { multiple?: boolean; value?: InternalValueType; defaultValue?: InternalValueType; request?: RequestConfig; lazyLoad?: boolean; onChange?: (value: SingleValueType | MultiValueType, selectOptions: BaseOptionType[] | BaseOptionType[][]) => void; }; export type CascaderRef = Omit; declare const Cascader: ((props: CascaderProps & { ref?: React.Ref | undefined; }) => React.ReactElement) & { displayName?: string | undefined; SHOW_PARENT: typeof SHOW_PARENT; SHOW_CHILD: typeof SHOW_CHILD; }; export default Cascader;