import { type MutableRefObject } from "react";
import type { IFieldOptionItem, IFieldPropOptions } from "../../types";
interface IUseFieldOptionsConfig<T extends IFieldOptionItem = any> {
    /** 外部管理Loading状态：setLoading */
    onLoading?: (loading: boolean) => void;
    /** 获取完options后进行的其他操作，不会影响返回options，为options的副作用 */
    callback?: (options: T[]) => void;
    /** 更新依赖项数组,不需要传递optionsProp,optionsProp会默认加入 */
    deps?: any;
    fetchRef?: MutableRefObject<boolean>;
}
export declare function useFetchOptions<T extends IFieldOptionItem = any>(optionsProp?: IFieldPropOptions, config?: IUseFieldOptionsConfig<T>): T[];
export {};
