/// import type { OptionsType as SelectOptionsType, OptionData, FlattenOptionData, FieldNames, OptionsType } from '../interface'; import type { FilterFunc, RawValueType, GetLabeledValue, DefaultValueType, DisplayLabelValueType, FlattenOptionsType, Key } from '../interface/generator'; export declare function fillFieldNames(fieldNames?: FieldNames): { label: string; value: string; options: string; }; /** * Flat options into flatten list. * We use `optionOnly` here is aim to avoid user use nested option group. * Here is simply set `key` to the index if not provided. */ export declare function flattenOptions(options: SelectOptionsType, { fieldNames }?: { fieldNames?: FieldNames; }): FlattenOptionData[]; export declare function findValueOption(values: RawValueType[], options: FlattenOptionData[], { prevValueOptions }?: { prevValueOptions?: OptionData[]; }): OptionData[]; export declare const getLabeledValue: GetLabeledValue; /** Filter options and return a new options by the search text */ export declare function filterOptions(searchValue: string, options: SelectOptionsType, { optionFilterProp, filterOption, }: { optionFilterProp: string; filterOption: boolean | FilterFunc; }): SelectOptionsType; export declare function sortByFullMatch(a: { value?: RawValueType; label?: React.ReactNode; key?: Key; disabled?: boolean; }, b: { value?: RawValueType; label?: React.ReactNode; key?: Key; disabled?: boolean; }, mergedSearchValue?: string, optionFilterProp?: string): number; export declare function getSeparatedContent(text: string, tokens: string[]): string[]; export declare function isValueDisabled(value: RawValueType, options: FlattenOptionData[]): boolean; /** * `tags` mode should fill un-list item into the option list */ export declare function fillOptionsWithMissingValue(options: SelectOptionsType, value: DefaultValueType, optionLabelProp: string, labelInValue: boolean): SelectOptionsType; export declare function customDisplayValues(tmpValues?: DisplayLabelValueType[], mergedFlattenOptions?: FlattenOptionsType, isMultiple?: boolean, showAll?: boolean, isSelectAll?: boolean, displayAllValue?: DisplayLabelValueType): DisplayLabelValueType[];