import { PrivatePoolKeyMaterial } from './keys.cjs'; type SerializedKeyMaterial = { v: number; rootSk: string; spendingSk: string; viewingSk: string; nullifierSk: string; spendingSkField: string; nullifierSkField: string; spendingPkField: string; viewingPk: string; paymentAddress: string; }; type LockIntervalMs = number; declare const LOCK_INTERVAL_PRESETS: readonly [number, number, number, number, 0]; declare function getLockInterval(walletPubkey: string): number; declare function setLockInterval(walletPubkey: string, intervalMs: number): void; declare function lockNow(): void; declare function saveCachedKeys(walletPubkey: string, keys: PrivatePoolKeyMaterial): Promise; declare function loadCachedKeys(walletPubkey: string): Promise; type LoadCacheStatus = { kind: 'ok'; keys: PrivatePoolKeyMaterial; } | { kind: 'no-cache'; } | { kind: 'pin-required'; } | { kind: 'corrupted'; }; declare function loadCachedKeysWithStatus(walletPubkey: string): Promise; declare function isPinProtected(walletPubkey: string): Promise; declare function isUnlocked(walletPubkey: string): boolean; declare function setupPin(args: { walletPubkey: string; pin: string; intervalMs?: number; }): Promise; declare function unlockWithPin(args: { walletPubkey: string; pin: string; }): Promise; declare function removePin(args: { walletPubkey: string; pin: string; }): Promise; declare function changePin(args: { walletPubkey: string; oldPin: string; newPin: string; intervalMs?: number; }): Promise; declare const BACKUP_FORMAT_NAME = "relai-private-pool-v2-backup"; type BackupFile = { format: typeof BACKUP_FORMAT_NAME; version: number; walletPubkey: string; paymentAddress: string; createdAt: string; keys: SerializedKeyMaterial; meta?: { note?: string; }; }; declare function buildBackupFileJson(args: { walletPubkey: string; keys: PrivatePoolKeyMaterial; note?: string; }): string; declare function parseBackupFileJson(raw: string): { ok: true; keys: PrivatePoolKeyMaterial; walletPubkey: string; paymentAddress: string; createdAt: string; } | { ok: false; error: string; }; declare function setBackupAcknowledged(walletPubkey: string): Promise; declare function hasBackupAcknowledged(walletPubkey: string): Promise; declare function clearCachedKeys(walletPubkey: string): Promise; export { type BackupFile, LOCK_INTERVAL_PRESETS, type LoadCacheStatus, type LockIntervalMs, buildBackupFileJson, changePin, clearCachedKeys, getLockInterval, hasBackupAcknowledged, isPinProtected, isUnlocked, loadCachedKeys, loadCachedKeysWithStatus, lockNow, parseBackupFileJson, removePin, saveCachedKeys, setBackupAcknowledged, setLockInterval, setupPin, unlockWithPin };