export interface UnlockCache { tryRestoreUserKey(params?: { keyVersion?: number; origin?: string; }): Promise; cacheUserKeyFromMaterial(keyMaterial32: BufferSource, // 32 bytes from HKDF opts?: { ttlMs?: number; keyVersion?: number; }): Promise; clear(): Promise; hardReset(): Promise; } /** * No-op implementation: never caches, never restores. * Useful for tests or environments without IndexedDB. */ export declare class NoopUnlockCache implements UnlockCache { tryRestoreUserKey(): Promise; cacheUserKeyFromMaterial(): Promise; clear(): Promise; hardReset(): Promise; } export declare class IdbUnlockCache implements UnlockCache { private ttlMs; constructor(ttlMs?: number); cacheUserKeyFromMaterial(keyMaterial32: ArrayBuffer, opts?: { ttlMs?: number; keyVersion?: number; }): Promise; tryRestoreUserKey(params?: { keyVersion?: number; origin?: string; }): Promise; clear(): Promise; hardReset(): Promise; } //# sourceMappingURL=unlock-cache.d.ts.map