/** EPS /data 下发的扁平字典行 */
export type EpsDictRow = {
    id: number;
    name: string;
    typeId: number;
    parentId?: number | null;
    orderNum?: number;
    value?: unknown;
    children?: EpsDictNode[];
};
export type EpsDictNode = EpsDictRow & {
    label: string;
    value: string | number | boolean;
    children?: EpsDictNode[];
};
export type EpsDictMap = Record<string, EpsDictNode[]>;
export declare function getDictMap(): EpsDictMap;
/** 字典树（含 children）；表单下拉 / switch 等 */
export declare function getDict(typeKey: string): EpsDictNode[];
/** 根项 → { label, value, color? }；color 取自子节点 name===color */
export declare function getDictOptions(typeKey: string): {
    label: string;
    value: string | number;
    color: string;
}[];
export declare function clearDictCache(typeKey?: string): void;
/**
 * 用 EPS 下发的扁平 dict 灌入本地缓存（组树）
 * 空对象不覆盖已有缓存
 */
export declare function hydrateDictFromEps(raw: Record<string, EpsDictRow[]> | null | undefined): EpsDictMap;
