import { Ref, ComputedRef } from 'vue'; import { StoreDefinition } from 'pinia'; import { CreateDictStoreConfig, DictItem, DictDataMap, DictLoadingMap } from './types'; /** * 创建字典 Store 工厂函数 * @param config 配置项 * @returns Pinia useStore 函数 */ export declare function createDictStore(config: CreateDictStoreConfig): StoreDefinition; loadingMap: Ref; errorMap: Ref>; getDictData: ComputedRef<(dictField: string) => DictItem[]>; isLoading: ComputedRef<(dictField: string) => boolean>; isLoaded: ComputedRef<(dictField: string) => boolean>; getError: ComputedRef<(dictField: string) => string | undefined>; loadDict: (dictField: string, force?: boolean) => Promise; loadDicts: (dictFields: string[], force?: boolean) => Promise; clearDict: (dictField?: string) => void; reloadDict: (dictField: string) => Promise; getDictLabel: (dictField: string, value: string | number) => string; getDictValue: (dictField: string, label: string) => string | number | undefined; hasDict: (field: string) => boolean; }, "dictData" | "loadingMap" | "errorMap">, Pick<{ dictData: Ref; loadingMap: Ref; errorMap: Ref>; getDictData: ComputedRef<(dictField: string) => DictItem[]>; isLoading: ComputedRef<(dictField: string) => boolean>; isLoaded: ComputedRef<(dictField: string) => boolean>; getError: ComputedRef<(dictField: string) => string | undefined>; loadDict: (dictField: string, force?: boolean) => Promise; loadDicts: (dictFields: string[], force?: boolean) => Promise; clearDict: (dictField?: string) => void; reloadDict: (dictField: string) => Promise; getDictLabel: (dictField: string, value: string | number) => string; getDictValue: (dictField: string, label: string) => string | number | undefined; hasDict: (field: string) => boolean; }, "getDictData" | "isLoading" | "isLoaded" | "getError">, Pick<{ dictData: Ref; loadingMap: Ref; errorMap: Ref>; getDictData: ComputedRef<(dictField: string) => DictItem[]>; isLoading: ComputedRef<(dictField: string) => boolean>; isLoaded: ComputedRef<(dictField: string) => boolean>; getError: ComputedRef<(dictField: string) => string | undefined>; loadDict: (dictField: string, force?: boolean) => Promise; loadDicts: (dictFields: string[], force?: boolean) => Promise; clearDict: (dictField?: string) => void; reloadDict: (dictField: string) => Promise; getDictLabel: (dictField: string, value: string | number) => string; getDictValue: (dictField: string, label: string) => string | number | undefined; hasDict: (field: string) => boolean; }, "hasDict" | "getDictLabel" | "loadDict" | "loadDicts" | "clearDict" | "reloadDict" | "getDictValue">>;