import type { SelectProps } from 'antd'; import type { NamePath } from 'rc-field-form/lib/interface'; import type { Key } from 'react'; import type { ApiType } from '../useAxios'; export declare type OptionObj = { label: Key; value: any; children?: OptionItemType[]; }; export declare type OptionItemType = Key | OptionObj | Record; export declare type OptionsProp = { labelKey?: string; valueKey?: string; childrenKey?: string; }; export declare type OptionList = SelectProps['options']; export declare type OptionsType = OptionItemType[] | ApiType; export interface WithOptions { options?: OptionsType; optionsProp?: OptionsProp; } export interface IUseOptions extends WithOptions { data?: Record; hidden?: boolean; name?: NamePath; } export declare type CreateWidthOptionsComponent = Omit & WithOptions;