import { PropsWithChildren } from 'react'; import { FC, IglooComponentProps } from '../types'; import { FormInstance } from 'antd/es/form'; import { NamePath } from 'antd/es/form/interface'; import { SelectProps, SelectValue } from 'antd/es/select'; export declare const compareOptions: (newOptions: any[], oldOptions?: any[]) => boolean; export declare const compareSelected: (newValue: any | any[], oldValue: any | any[]) => boolean; type Options = SelectProps['options']; export interface HOCProps extends IglooComponentProps { options?: Options; onSearch?: any; getOptions?: (form: FormInstance) => any[]; optionGroups?: { parentKey: string; options: Options; }[]; datasourceFilters?: string[]; datasourceKey?: string; datasourceApi?: string; dependField?: NamePath; passCompareOptions?: boolean; } export interface ComponentProps extends IglooComponentProps { options?: Options; clearWhenOptionsUpdated?: boolean; } export declare function optionsHOC(Component: FC): FC>; export declare function previewSelectedOptions(options: Options, value: any): any; export {};