import React, { ReactNode } from 'react'; import { PopupProps } from '../popup/index.js'; import { CascaderValue, CascaderValueExtend, CascaderOption } from '../cascader-view/index.js'; import { NativeProps } from '../../utils/native-props.js'; import type { FieldNamesType } from '../../hooks/index.js'; export type CascaderActions = { open: () => void; close: () => void; toggle: () => void; }; export type CascaderRef = CascaderActions; export type CascaderProps = { options: CascaderOption[]; value?: CascaderValue[]; defaultValue?: CascaderValue[]; placeholder?: string; onSelect?: (value: CascaderValue[], extend: CascaderValueExtend) => void; onConfirm?: (value: CascaderValue[], extend: CascaderValueExtend) => void; onCancel?: () => void; onClose?: () => void; visible?: boolean; title?: ReactNode; confirmText?: ReactNode; cancelText?: ReactNode; loading?: boolean; children?: (items: (CascaderOption | null)[], actions: CascaderActions) => ReactNode; onTabsChange?: (index: number) => void; activeIcon?: ReactNode; fieldNames?: FieldNamesType; } & Pick & NativeProps; export declare const Cascader: React.ForwardRefExoticComponent<{ options: CascaderOption[]; value?: import("../check-list/index.js").CheckListValue[] | undefined; defaultValue?: import("../check-list/index.js").CheckListValue[] | undefined; placeholder?: string | undefined; onSelect?: ((value: CascaderValue[], extend: CascaderValueExtend) => void) | undefined; onConfirm?: ((value: CascaderValue[], extend: CascaderValueExtend) => void) | undefined; onCancel?: (() => void) | undefined; onClose?: (() => void) | undefined; visible?: boolean | undefined; title?: ReactNode; confirmText?: ReactNode; cancelText?: ReactNode; loading?: boolean | undefined; children?: ((items: (CascaderOption | null)[], actions: CascaderActions) => ReactNode) | undefined; onTabsChange?: ((index: number) => void) | undefined; activeIcon?: ReactNode; fieldNames?: FieldNamesType | undefined; } & Pick & { className?: string | undefined; style?: (React.CSSProperties & Partial>) | undefined; tabIndex?: number | undefined; } & React.AriaAttributes & React.RefAttributes>;