/** * @file Select * @description * @author fex * @date 2017-11-07 */ /// /// import React from 'react'; import { ControllerStateAndHelpers } from 'downshift'; import { ThemeProps } from 'amis-core'; import { LocaleProps } from 'amis-core'; import { SpinnerExtraProps } from './Spinner'; import type { Option, Options } from 'amis-core'; import { RemoteOptionsProps } from './WithRemoteConfig'; import { PopOverOverlay } from './PopOverContainer'; import type { TooltipObject } from '../components/TooltipWrapper'; export { Option, Options }; export declare const defaultFilterOption: (options: Option[], inputValue: string, option: { keys: string[]; }) => Option[]; export type FilterOption = typeof defaultFilterOption; export interface OptionProps { className?: string; multi?: boolean; multiple?: boolean; valueField?: string; labelField?: string; simpleValue?: boolean; options: Options; loading?: boolean; joinValues?: boolean; extractValue?: boolean; delimiter?: string; clearable?: boolean; resetValue: any; placeholder?: string; disabled?: boolean; creatable?: boolean; pathSeparator?: string; itemHeight?: number; virtualThreshold?: number; hasError?: boolean; block?: boolean; onAdd?: (idx?: number | Array, value?: any, skipForm?: boolean) => void; editable?: boolean; onEdit?: (value: Option, origin?: Option, skipForm?: boolean) => void; removable?: boolean; onDelete?: (value: Option) => void; } export type OptionValue = string | number | null | undefined | Option; export declare function value2array(value: OptionValue | Array, props: Pick, enableNodePath?: boolean): Array