export * from './options'; export * from './filter'; /** * 获取本地 */ export declare function getItem(name: string): any; /** * 存储本地 */ export declare function setItem(name: string, value: T): void; /** * 删除本地 */ export declare function removeItem(name: string): void; export declare function getSessionItem(name: string): any; export declare function setSessionItem(name: string, value: any): void; /** * 清空所有本地数据 * */ export declare function clearItem(): void; /** * 生成随机数 */ export declare function uuid(): string; /** * 转换base64 * */ export declare function getBase64(file: any): Promise; /** * 下载Blob 或 链接下载 * **/ export declare function downFile(data: any, filename: string, type?: string): void; /** * 加载静态资源js和css * @param type 资源文件类型 * @param id 创建的标签ID,防止重复创建 * @param src 资源文件链接 * @returns Promise */ export declare const loadJsCss: (type: 'js' | 'css', id: string, src: string) => Promise; /** * 转换成树 * @param {Array} items 原始数据 * @param {Array} pid null | "" * */ export declare function transTreeData(data: any[]): any[]; /** * 一级数组转为树结构 * @param {Array} data 获取的区域数据 * @param {String Or Null} parentId 父节点标识 * @returns {Array} 带childen的树结构 */ /** * @param {Object} rspMap 总数据 * { * [parentId: 父id]: [子节点, ...] * [root: 根节点]: [子节点,...] * } * @param {Array} data rspMap.下面的子数据 */ export declare function findChild(rspMap?: any, data?: any[]): any[]; export declare const getParams: (name: string) => string | null; export declare const getfilesize: (size: number) => string; export declare function notYet(val: any): any; export declare function isNonzero(val: any): boolean; export declare const cookieAppKey: () => any; export declare const cookieModelDb: () => any; export declare const cookieToken: () => any; export declare const cookieUserInfo: () => any; export declare const cookieAppInfo: () => any; export declare const prefixCls: any;