/** * Base adapter utilities and factory */ import type { SecureStorageAdapter, SecureStorageOptions, StorageResult } from "./types"; /** * Create a namespaced key */ export declare function namespacedKey(namespace: string | undefined, key: string): string; /** * Create a success result */ export declare function ok(value: T): StorageResult; /** * Create an error result */ export declare function err(error: string): StorageResult; /** * Wrap an async operation with error handling */ export declare function wrap(fn: () => Promise, errorPrefix: string): Promise>; /** * Abstract base class for secure storage adapters */ export declare abstract class BaseSecureStorageAdapter implements SecureStorageAdapter { abstract readonly name: string; abstract readonly available: boolean; protected readonly namespace: string; protected readonly options: SecureStorageOptions; constructor(options?: SecureStorageOptions); protected key(rawKey: string): string; abstract set(key: string, value: string): Promise>; abstract get(key: string): Promise>; abstract delete(key: string): Promise>; abstract has(key: string): Promise>; } //# sourceMappingURL=adapter.d.ts.map