import { type EmbeddedAccount, type Openfort } from '@openfort/openfort-js'; import type { OpenfortWalletConfig } from '../components/Openfort/types.js'; import type { SetActiveEmbeddedWalletOptionsBase } from '../shared/types.js'; type SetActiveWalletParameters = { client: Openfort; walletConfig: OpenfortWalletConfig | undefined; /** Account to activate, already resolved from the caller's address. */ account: EmbeddedAccount; /** Recovery-related options passed to `setActive`. */ options: SetActiveEmbeddedWalletOptionsBase; /** Rejects work reserved by an authentication session that is no longer current. */ assertCurrent: () => void; }; type SetActiveWalletResult = { /** * `true` when the account is password-protected and no password was supplied. * The key share stays locked; the caller must collect a password and retry. */ needsRecovery: boolean; }; /** * Unlocks an embedded account's key share so it can sign. * * @param parameters - Client, wallet config, target account and recovery options. * @returns Whether the caller still has to collect a recovery password. */ export declare function setActiveWallet(parameters: SetActiveWalletParameters): Promise; export {};