import { FlattenOptionData } from '../interface'; import { BaseOptionType, DefaultOptionType, FieldNames } from '../Select'; export declare function isValidCount(value?: number): boolean; export declare function fillFieldNames(fieldNames: FieldNames | undefined, childrenAsData: boolean): Required; /** * 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: OptionType[], { fieldNames, childrenAsData }?: { fieldNames?: FieldNames; childrenAsData?: boolean; }): FlattenOptionData[]; /** * Inject `props` into `option` for legacy usage */ export declare function injectPropsWithOption(option: T | undefined): T | undefined; export declare function getSeparatedContent(text: string, tokens: string[], end?: number): string[] | null;