/** * 递归合并两个对象 * * @export * @template T * @template U * @param {T} target 目标对象,合并后结果存放于此。The target object to merge into. * @param {U} source 要合并的源对象。The source object to merge from. * @returns {*} {(T & U)} 合并后的对象。The merged object. */ export declare function deepMerge(target: T, source: U): T & U; /** * 获取认证令牌 * * @export * @returns {*} {(string | null)} */ export declare function getToken(): string | null; /** * 设置认证令牌(目前只有 session 级别生效) * * @export * @param {string} token */ export declare function setToken(token: string): void; /** * 从 cookie 获取租户标识 * * @export * @returns {*} {(string | null)} */ export declare function getTenant(): string | null; /** * 设置租户标识至 cookie * * @export * @param {string} tenant */ export declare function setTenant(tenant: string): void; /** * 获取路径参数 * * @export * @returns {*} {{ aid: string; pid: string }} */ export declare function getPathQuery(): { aid: string; pid: string; }; /** * 是否为移动端设备 */ export declare const isMobile: boolean; /** * 获取时区,默认: UTC+08:00 * * @export * @returns {*} */ export declare function getTimezone(): string;