export type RecoveryData = { password: string; recoveryPhrase?: string; }; export type RecoveryFiles = { passwordKeyFile: string; recoveryKeyFile: string; }; export type RecoveryVars = { web5RecoveryPhraseEnv: string; web5PasswordEnv: string; }; export type RecoveryDataNames = RecoveryFiles & RecoveryVars; export type RecoveryValidateRequest = RecoveryData & { firstLaunch?: boolean; type: string; }; export type RecoveryValidateSpecificRequest = RecoveryValidateRequest & RecoveryFiles & RecoveryVars; export declare class DcxAgentRecovery { /** * * Creates a new password and recovery phrase for the agent vault. * * @param params.passwordKeyFile The name of the vault password key file. * @param params.recoveryKeyFile The name of the vault recovery phrase key file. * @returns password and recovery phrase; see {@link RecoveryData} */ static createRecoveryData({ passwordKeyFile, recoveryKeyFile }: RecoveryFiles): Promise; /** * * Validates the password and recovery phrase for the dcx issuer agent vault. * * @param param.recoveryPhrase The recovery phrase to recover the vault. * @param param.password The password to unlock the recovered vault. * @param param.firstLaunch A boolean indicating if this is the first launch of the agent. * @param param.passwordKeyFile The name of the vault password key file. * @param param.recoveryKeyFile The name of the vault recovery phrase key file. * @param param.web5PasswordEnv The name of the environment variable for the vault password. * @param param.web5RecoveryPhraseEnv The name of the environment variable for the vault recovery phrase. * @returns password and recovery phrase; see {@link RecoveryData} */ static validateIssuer({ password, recoveryPhrase, passwordKeyFile, recoveryKeyFile, web5PasswordEnv, web5RecoveryPhraseEnv, firstLaunch, }: RecoveryValidateSpecificRequest): Promise; /** * * Validates the password and recovery phrase for the dcx applicant agent vault. * * @param param.password The password to unlock the recovered vault. * @param param.recoveryPhrase The recovery phrase to recover the vault. * @param param.passwordKeyFile The name of the vault password key file. * @param param.recoveryKeyFile The name of the vault recovery phrase key file. * @param param.web5PasswordEnv The name of the environment variable for the vault password. * @param param.web5RecoveryPhraseEnv The name of the environment variable for the vault recovery phrase. * @returns password and recovery phrase; see {@link RecoveryData} * */ static checkDcxApplicant({ password, recoveryPhrase, passwordKeyFile, recoveryKeyFile, web5PasswordEnv, web5RecoveryPhraseEnv, }: RecoveryValidateSpecificRequest): Promise; /** * * Returns the names of the recovery data files and environment variables * * @param type The type of agent * @returns The names of the recovery data files and environment variables * */ static getRecoveryDataNames(type: string): RecoveryDataNames; /** * * Validates the password and recovery phrase for the dcx agent vault. * * @param params.firstLaunch A boolean indicating if this is the first launch of the agent * @param params.password The password to unlock the vault * @param params.recoveryPhrase The recovery phrase to recover the vault * @param params.type The type of agent * @returns password and recovery phrase; see {@link RecoveryData} * @throws DcxError */ static validate({ password, recoveryPhrase, type, firstLaunch }: RecoveryValidateRequest): Promise; } //# sourceMappingURL=dcx-agent-recovery.d.ts.map