import { ConfigTemplate, ConfigTemplateCategory } from '../components/types/DataSourceTypes'; /** * 缓存数据 * @param key * @param data */ declare const setCacheData: (key: string, data: any) => void; /** * 获取缓存数据 * @param key */ declare const getCacheData: (key: string) => any; /** * 获取并删除缓存数据 * @param key */ declare const getAndDelCacheData: (key: string) => any; /** * 删除缓存数据 * @param key */ declare const delCacheData: (key: string) => void; export { setCacheData, getCacheData, getAndDelCacheData, delCacheData }; /** * 保存模板到本地 */ export declare const saveLocalTemplate: (template: ConfigTemplate) => void; /** * 获取本地模板列表(可按分类筛选) */ export declare const getLocalTemplateList: (category?: ConfigTemplateCategory) => ConfigTemplate[]; /** * 根据ID获取本地模板 */ export declare const getLocalTemplateById: (id: string) => ConfigTemplate | null; /** * 删除本地模板 */ export declare const deleteLocalTemplate: (id: string) => void;