export interface StorageOptions { dataPath?: string; validate?: boolean; prettyPrinting?: boolean; } export interface StorageData { [key: string]: any; } declare class Storage { private dataPath; private defaultDataPath; constructor(); /** * Get the default data path for the current platform */ private getDefaultDataPath; /** * Get the current data path */ getDataPath(): string; /** * Set a custom data path */ setDataPath(directory?: string): void; /** * Ensure the data path exists */ private ensureDataPath; /** * Get the full file path for a key */ private getFilePath; /** * Read data for a key (async) */ get(key: string, options?: StorageOptions): Promise; /** * Read data for a key (sync) */ getSync(key: string, options?: StorageOptions): any; /** * Write data for a key (async) */ set(key: string, data: any, options?: StorageOptions): Promise; /** * Write data for a key (sync) */ setSync(key: string, data: any, options?: StorageOptions): void; /** * Check if a key exists */ has(key: string, options?: StorageOptions): Promise; /** * Get all keys */ keys(options?: StorageOptions): Promise; /** * Remove a key */ remove(key: string, options?: StorageOptions): Promise; /** * Clear all data */ clear(options?: StorageOptions): Promise; /** * Get multiple keys at once */ getMany(keys: string[], options?: StorageOptions): Promise; /** * Get all data */ getAll(options?: StorageOptions): Promise; /** * Get storage statistics */ getStats(options?: StorageOptions): Promise<{ totalKeys: number; totalSize: number; keys: string[]; }>; } declare const storage: Storage; export default storage; export declare const get: (key: string, options?: StorageOptions) => Promise; export declare const getSync: (key: string, options?: StorageOptions) => any; export declare const set: (key: string, data: any, options?: StorageOptions) => Promise; export declare const setSync: (key: string, data: any, options?: StorageOptions) => void; export declare const has: (key: string, options?: StorageOptions) => Promise; export declare const keys: (options?: StorageOptions) => Promise; export declare const remove: (key: string, options?: StorageOptions) => Promise; export declare const clear: (options?: StorageOptions) => Promise; export declare const getMany: (keys: string[], options?: StorageOptions) => Promise; export declare const getAll: (options?: StorageOptions) => Promise; export declare const getStats: (options?: StorageOptions) => Promise<{ totalKeys: number; totalSize: number; keys: string[]; }>; export declare const setDataPath: (directory?: string) => void; export declare const getDataPath: () => string;