/** * @title: 判断是否无痕模式 * @description: * @return: * * @Author: shengjie.zuo * @Date: 2024-09-4 09:58:22 */ export declare const detectIncognito: () => Promise<{ isPrivate: boolean; browserName: string; } | { isPrivate: boolean; }>; /** * @Description: 生成唯一id * @Author: wzw * @Date: 2020-12-01 14:20:29 * @param {*} * @return {*} */ export declare const getUniqueId: (prefix?: string, maxLength?: number) => string; /** * @title: 对数组进行增|删 * @description: 用于多选选中和取消选中的处理 * @param {any} list * @param {any} item * @param {string} key * @return {*} * @Author: zhiwei.Wang * @Date: 2023-12-19 16:44 */ export declare const changeArray: (list: T[] | undefined, item: T, key?: string) => T[]; /** * @title: 判断某个字段是否在列表内 * @description: * @param {*} T * @param {boolean} param2 * @return {*} * @Author: zhiwei.Wang * @Date: 2023-12-19 16:54 */ export declare const getItemByArray: (list: T[] | undefined, item: T, key?: string) => boolean; export declare const createArray: (length: number, returnItem: any) => unknown[]; /** * 根据对象内容生成唯一id * @param obj */ export declare const generateUniqueIdByObj: (obj: Record) => any;