/// import { Vault, VaultBackupType, VaultItem, VaultServiceConfig } from './types'; /** * SpaceVaultService implements {@link Vault} interface. It interacts to space's vault service * to retrieve and store vault items. * */ export declare class SpaceVaultService implements Vault { private readonly config; constructor(config: VaultServiceConfig); retrieve(uuid: string, passphrase: string, backupType: VaultBackupType): Promise; /** * Store VaultItems to space fault. * * NOTE: metadata should contain a `sessionToken` field and it should be a valid hub session api token. * */ store(uuid: string, passphrase: string, backupType: VaultBackupType, items: VaultItem[], metadata: Record): Promise; private computeVaultKey; private computeVaultServiceKey; } export declare const decryptVaultItemData: (ciphertext: Buffer, key: Buffer) => string; export declare const encryptVaultItemData: (data: string, key: Buffer) => Buffer;