import React from 'react'; import { OptionsItem } from '../dropdown'; import { CascadeOptions, ValueType } from './type'; /** * 判断是否为string数组 * @en Determine whether it is a string array * */ export declare function isStringArray(options: string[] | OptionsItem[][] | CascadeOptions[]): options is string[]; /** * 判断是否为嵌套数组 * @en Determine if it is a nested array * */ export declare function isCascadeArray(options: string[] | OptionsItem[][] | CascadeOptions[]): options is CascadeOptions[]; /** * 格式化传入的数组 * @en format the input array * @param {OptionsItem[][] | string[] | CascadeOptions[]} options 上层传入的选择项数组 * @param {OptionsItem[][] | string[] | CascadeOptions[]} options {en} Array of options from the upper layer * @param {ValueType} currentValues Current selected value * */ export declare const getFormattedOptions: (options: OptionsItem[][] | string[] | CascadeOptions[], currentValues: ValueType) => { formattedOptions: OptionsItem[][]; formattedValue: (string | number | React.ReactText[])[]; }; /** * 判断是否为指定ref内的元素 * @en Determine whether it is an element within the specified ref */ export declare const isRefDom: (dom: any, ref: React.RefObject) => boolean; /** * 判断是否为指定类名下的元素 * @en Determine whether it is an element under the specified classname */ export declare const isClassNameDom: (dom: any, className: string) => boolean;