/** * 为了避免解析错误格式的 json 字符串时页面奔溃,需要使用错误处理 */ export declare function jsonParse(jsonStr: string, defaultValue: any): any; /** * 空保护函数 * * @template T * @param {(T | undefined | null)} value * @param {T} protectValue * @returns */ export declare const protect: (value: T | undefined | null, protectValue: T) => T; /** * string 类型的空保护函数 * * @param {string} value * @param {string} [protectValue='-'] */ export declare const stringProtect: (value: string | null | undefined, protectValue?: string) => string;