/** * Storage API 接口 */ export interface StorageAPI { /** 存储数据 */ setData: (key: string, value: any) => Promise; /** 读取数据 */ getData: (key: string) => Promise; /** 获取所有键名 */ getKeys: () => Promise; /** 检查键是否存在 */ has: (key: string) => Promise; /** 删除指定键 */ removeData: (key: string) => Promise; /** 清空所有存储 */ clear: () => Promise; } /** * 持久化键值对存储 API */ export declare const storage: StorageAPI; //# sourceMappingURL=storage.d.ts.map