import type { EmbeddedAccount, Openfort, RecoveryParams } from '@openfort/openfort-js'; type SetRecoveryMethodParameters = { client: Openfort; /** Recovery params that currently unlock the wallet. */ previousRecovery: RecoveryParams; /** Recovery params to switch to. */ newRecovery: RecoveryParams; /** Refetches the embedded accounts list so the new method is reflected. */ updateEmbeddedAccounts: (options?: { silent?: boolean; }) => Promise; }; /** * Re-encrypts the active wallet's key share under a new recovery method and * refreshes the accounts list. * * @param parameters - Client, both recovery params and the accounts refetcher. * @throws {RecoveryError} When the core SDK rejects the change. */ export declare function setRecoveryMethod(parameters: SetRecoveryMethodParameters): Promise; export {};