import { RecoveryDataKey } from './RecoveryDataKey.mjs'; import { RecoveryKeySize } from './RecoveryKeySize.mjs'; /** * * Allows to configure which recovery key to use when creating recovery data. */ export type RecoveryKeyOptions = RecoveryKeyOptions.Generate | RecoveryKeyOptions.Use; export declare namespace RecoveryKeyOptions { /** * * Generate a new key for the recovery data. This is the default behavior, and should be used in most cases. * @param recoveryKeySize specifies the size of the recovery key to generate */ class Generate { recoveryKeySize: RecoveryKeySize; readonly $ktClass: 'com.icure.cardinal.sdk.crypto.entities.RecoveryKeyOptions.Generate'; constructor(partial: Partial & Pick); } /** * * Specifies to use a pre-created recovery key. */ class Use { key: RecoveryDataKey; readonly $ktClass: 'com.icure.cardinal.sdk.crypto.entities.RecoveryKeyOptions.Use'; constructor(partial: Partial & Pick); } }