//#region packages/window/storage.d.ts interface Config { expires?: number | string; once?: boolean; encrypt?: boolean; prefix?: string; isCom?: boolean; } /** * 设置本地存储数据 */ declare function setLocal(key: string, value?: T, config?: Config): boolean; /** * 获取本地存储数据 */ declare function getLocal(key: string, config?: Config): T | null; /** * 清除本地存储数据 */ declare function clearLocal(key?: string, config?: Config): boolean; /** * 设置会话存储数据 */ declare function setSession(key: string, value?: T, config?: Config): boolean; /** * 获取会话存储数据 */ declare function getSession(key: string, config?: Config): T | null; /** * 清除会话存储数据 */ declare function clearSession(key?: string, config?: Config): boolean; /** * 清理所有过期数据 */ declare function cleanupExpired(): void; //#endregion export { getSession as a, getLocal as i, clearLocal as n, setLocal as o, clearSession as r, setSession as s, cleanupExpired as t };