import { ReactElement } from 'react'; import { LanguageTypeEnum } from '../typings/enum/common.enum'; import { IOptionsAttr } from '../typings/interface/comp.interface'; export declare const getHostName: () => string; export declare const userAgentIsMobile: () => boolean; export declare const getOptionColor: (option?: IOptionsAttr) => { fontColor: string; backgroundColor: string; }; export declare const getColorBackground: (value: string | number, options: IOptionsAttr[]) => { fontColor: string; backgroundColor: string; }; /** * 获取cookie的通用方法 * @param cookieName cookie的名称 * @returns 当前cookie名称对应的值 */ export declare const getCookie: (cookieName: string) => string | null; /** * 设置cookie的通用方法 * @param name cookie的名称 * @param value cookie的值 * @param expiredays cookie的失效天数 * @param path cookie的路径,默认为 / * @param domain cookie的域 */ export declare const setCookie: (name: string, value: string, expiredays: number, path?: string, domain?: string) => void; export declare const getLanguage: (cookieName?: string) => LanguageTypeEnum; export declare const getLocaleMsg: (cookieName?: string) => any; export declare function base64ToBlobOrFile(base64: string, type: string, filename: string): Blob; export declare const RenderIf: (props: { flag: boolean; children: ReactElement; }) => ReactElement | null; /** * 获取数组中某个选项 */ export declare const getSrhItem: (srhId: string, srhList?: any[], listId?: string) => any; export declare const evalFn: (val: string) => any;