/**
 * 弹窗缓存管理工具
 * 用于在浏览器中缓存弹窗的位置、大小等状态信息
 */
/**
 * 弹窗状态接口
 */
interface DialogState {
    x: number;
    y: number;
    width: number;
    height: number;
    isFullscreen?: boolean;
    version?: string;
    timestamp?: number;
    windowWidth?: number;
    windowHeight?: number;
}
/**
 * 缓存统计信息接口
 */
interface CacheStats {
    supported: boolean;
    totalDialogs: number;
    totalSize: number;
    formattedSize?: string;
}
/**
 * 弹窗缓存管理类
 */
declare class DialogCacheManager {
    private isSupported;
    constructor();
    /**
     * 检查浏览器是否支持localStorage
     * @returns {boolean}
     */
    private checkLocalStorageSupport;
    /**
     * 生成缓存键名
     * @param {string} dialogId - 弹窗唯一标识
     * @returns {string}
     */
    getCacheKey(dialogId: string): string;
    /**
     * 保存弹窗状态
     * @param {string} dialogId - 弹窗唯一标识
     * @param {DialogState} state - 弹窗状态
     */
    saveDialogState(dialogId: string, state: DialogState): void;
    /**
     * 获取弹窗状态
     * @param {string} dialogId - 弹窗唯一标识
     * @returns {DialogState|null}
     */
    getDialogState(dialogId: string): DialogState | null;
    /**
     * 删除弹窗状态
     * @param {string} dialogId - 弹窗唯一标识
     */
    removeDialogState(dialogId: string): void;
    /**
     * 清除所有弹窗缓存
     */
    clearAllDialogStates(): void;
    /**
     * 获取所有缓存的弹窗ID
     * @returns {string[]}
     */
    getAllDialogIds(): string[];
    /**
     * 获取缓存统计信息
     * @returns {CacheStats}
     */
    getCacheStats(): CacheStats;
    /**
     * 格式化字节大小
     * @param {number} bytes
     * @returns {string}
     */
    private formatBytes;
}
declare const dialogCacheManager: DialogCacheManager;
export default dialogCacheManager;
export declare const saveDialogState: (dialogId: string, state: DialogState) => void, getDialogState: (dialogId: string) => DialogState | null, removeDialogState: (dialogId: string) => void, clearAllDialogStates: () => void, getAllDialogIds: () => string[], getCacheStats: () => CacheStats;
export type { DialogState, CacheStats };
//# sourceMappingURL=dialogCache.d.ts.map