import { Dict } from '../types'; interface ReturnUseDict { dictState: { [key: string]: Dict[]; }; load: () => Promise; handleProvide: () => void; handleInject: () => { [key: string]: Dict[]; }; filter: (key: string, value: string | string[]) => string; } /** * value 转字典label * @param value * @param dicts */ export declare const dictFormatter: (value: string | string[], dicts: Dict[]) => string; /** * value 转 字典label * @param value * @param dictKey */ export declare const dictFilter: (value: string | string[], dictKey: string) => string; export declare const handleInject: () => { [key: string]: Dict[]; }; declare const useDictBindFun: (getDictDetail: (data: any) => Promise, service: (data: any) => Promise) => (dictKeys?: string[], dictKV?: { key: string; url: string; }[], dictObj?: { [key: string]: Dict[] | (() => Promise); } | undefined) => ReturnUseDict; export default useDictBindFun;