import { type Ref, type UnwrapRef } from 'vue';
/**
 * 创建字段数组的computed属性
 * @param queryParams 查询参数对象
 * @param fields 字段名数组
 * @returns computed数组
 * @example
 * // 价格区间
 * const priceRange = useComputedFields(queryParams, ['min_price', 'max_price']);
 * // 多个状态
 * const statusList = useComputedFields(queryParams, ['status1', 'status2', 'status3']);
 * // 多个时间点
 * const timePoints = useComputedFields<string[]>(queryParams, ['create_time_start', 'create_time_end']);
 * 配合组件使用：
 * <gm-search-form-date-picker v-model="createTime" prop="createTime" label="创建时间" type="daterange" />
 *
 */
export declare const useComputedFields: <R = unknown, T extends Ref<Record<string, any>> = Ref<Record<string, any>>, K extends keyof UnwrapRef<T> & string = keyof UnwrapRef<T> & string>(queryParams: T, fields: K[]) => import("vue").WritableComputedRef<R extends unknown ? UnwrapRef<T>[K][] : R>;
