UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

43 lines 1.48 kB
export interface StorageKeysConfig { namespace?: string; } export declare class StorageKeys { private namespace; constructor(config?: StorageKeysConfig); private key; get sessionDecryptedBackup(): string; get sessionPaymentKey(): string; get sessionOrdinalKey(): string; get sessionOAuthState(): string; get sessionBackupSource(): string; get encryptedBackup(): string; getBapRotationKey(idKey: string): string; } export declare const DEFAULT_STORAGE_KEYS: StorageKeys; export declare const STORYBOOK_STORAGE_KEYS: StorageKeys; export declare function createStorageKeys(namespace?: string): StorageKeys; /** * Usage Examples: * * // Default namespace (no prefix) * const keys = createStorageKeys(); * keys.encryptedBackup // -> 'encryptedBackup' * keys.sessionDecryptedBackup // -> 'decryptedBackup' * * // Storybook namespace * const storybookKeys = createStorageKeys('storybook'); * storybookKeys.encryptedBackup // -> 'storybook:encryptedBackup' * storybookKeys.sessionDecryptedBackup // -> 'storybook:decryptedBackup' * * // Development namespace * const devKeys = createStorageKeys('dev'); * devKeys.sessionPaymentKey // -> 'dev:paymentKey' * * // Configuration in BitcoinAuthConfig: * const config = { * storageNamespace: 'myapp-prod', * storage: myPersistentStorage, // For encrypted backups * sessionStorage: mySessionStorage, // For temporary data * }; */ //# sourceMappingURL=storage-keys.d.ts.map