import { DestinationMethod } from '../types';
export declare class AppStorage {
    static storage: Storage;
    static cache: Object;
    static init(): void;
    /**
     * 多页方案清除目标页待执行函数
     */
    static clearMethodsQueue(): void;
    /**
     * 多页方案获取目标页待执行函数队列
     * @return {Array<DestinationMethod>}
     */
    static getDestinationMethods(): Array<DestinationMethod>;
    /**
     * 多页方案向目标页待执行函数队列添加函数
     * @param {DestinationMethod} data
     */
    static addDestinationMethod(data: DestinationMethod): void;
    /**
     * 页面数据获取接口
     * @param  {string} key
     * @return {any}
     */
    static get(key: string): any;
    /**
     * 页面数据存储接口
     * @param {string} key
     * @param {any}    data
     */
    static set(key: string, data: any): void;
    /**
     * 多页方案将 cache 数据存入 SessionStorage
     */
    static save(): void;
    /**
     * 多页方案从 SessionStorage 重建缓存
     */
    static restore(): void;
    /**
     * 清除页面存储的指定数据
     * @param {string} key
     */
    static clear(key: string): void;
    /**
     * 清除所有页面存储数据
     */
    static clearAll(): void;
    /**
     * 安全设置localStorage
     * @param {string} key
     * @param {string} value
     */
    static setItemSafe(key: string, value: string): void;
}
