/** * Web secure storage using encrypted localStorage * * Uses SubtleCrypto for AES-GCM encryption when Web Crypto API is available */ import type { SecureStorageOptions, StorageResult } from "./types"; import { BaseSecureStorageAdapter } from "./adapter"; /** * Web storage adapter with encryption * * Uses localStorage with AES-GCM encryption via Web Crypto API. * Falls back to plain localStorage if crypto is unavailable (with warning). */ export declare class WebSecureStorage extends BaseSecureStorageAdapter { readonly name = "web-crypto"; readonly available: boolean; private cryptoKey; private readonly storageKey; constructor(options?: SecureStorageOptions); /** * Initialize with a derived encryption key */ init(password?: string): Promise>; private getOrCreateSalt; private encrypt; private decrypt; set(key: string, value: string): Promise>; get(key: string): Promise>; delete(key: string): Promise>; has(key: string): Promise>; keys(): Promise>; clear(): Promise>; private getStorageData; } //# sourceMappingURL=web.d.ts.map