/** * Encrypted key-value secrets vault backed by a local file. * * Uses Fernet symmetric encryption (AES-128-CBC + HMAC-SHA256) in the standard * Dexalot operator vault wire format so encrypted values are portable across tooling. * * The vault file stores a language-neutral JSON document so Python and TypeScript * SDKs can share the exact same on-disk format in the future. * * The vault file is created with owner-only permissions (0o600). * * Import from `dexalot-sdk/secrets-vault` (Node only). Typical usage: * const key = generateSecretsVaultKey(); * secretsVaultSet('~/.dexalot/secrets_vault.json', 'PRIVATE_KEY', '0x...', key); * const result = secretsVaultGet('~/.dexalot/secrets_vault.json', 'PRIVATE_KEY', key); * if (result.success) { * const privateKey = result.data; * } */ import { Result } from './result.js'; /** * Generate a new Fernet encryption key. * Returns a URL-safe base64-encoded 32-byte key string. */ export declare function generateSecretsVaultKey(): string; /** * Encrypt and store (upsert) a value in the secrets vault. */ export declare function secretsVaultSet(vaultPath: string, key: string, value: string, encryptionKey: string): Result; /** * Retrieve and decrypt a value from the secrets vault. */ export declare function secretsVaultGet(vaultPath: string, key: string, encryptionKey: string): Result; /** * List all key names stored in the secrets vault. */ export declare function secretsVaultList(vaultPath: string): Result; /** * Remove a key-value pair from the secrets vault. */ export declare function secretsVaultRemove(vaultPath: string, key: string): Result; //# sourceMappingURL=secretsVault.d.ts.map