/** * 获取单个 Cookie 值 * @param {string} key - Cookie 键名 * @returns {string | false} Cookie 值,不存在返回 false */ export declare function getToken(key: string): string | false; /** * Cookie 读取工具函数(批量读取) * @param {string[]} keys - 需要读取的 Cookie 键名数组 * @returns {Record} Cookie 键值对对象,不存在的键值为空字符串 */ export declare function getCookies(keys: string[]): Record; /** * Base64 解码工具函数 * @param {string} str - Base64 编码的字符串 * @returns {string} 解码后的字符串 */ export declare function base64Decode(str: string): string; /** * 解析 Token 中的用户信息(德邦标准格式) * @param {string} token - Token 字符串(Base64 编码的逗号分隔字符串,格式:1,userName,userCode,deptCode,deptName) * @returns {Record | null} 解析后的用户信息对象,解析失败返回 null */ export declare function parseToken(token: string): Record | null; /** * 解析 Token 中的用户信息(JSON 格式,兼容其他格式) * @param {string} token - Token 字符串(Base64 编码的 JSON) * @returns {Record | null} 解析后的用户信息对象,解析失败返回 null */ export declare function parseTokenJSON(token: string): Record | null;