import { type Openfort } from '@openfort/openfort-js'; import type { StoreApi } from 'zustand/vanilla'; import type { OpenfortWalletConfig } from '../../components/Openfort/types'; import type { OpenfortStore } from '../store'; type Params = { storeEmbeddedState: OpenfortStore['embeddedState']; storeActiveEmbeddedAddress: OpenfortStore['activeEmbeddedAddress']; openfort: Openfort | null; walletConfig: OpenfortWalletConfig | undefined; store: StoreApi; }; /** * Auto-recover: when the SDK reaches EMBEDDED_SIGNER_NOT_CONFIGURED with a known * active address, attempts to configure the signer via recover() → READY. * * Reads embeddedAccounts imperatively from the store (not as a dep) so that * fetchEmbeddedAccounts updating the store mid-recovery does not re-trigger the * effect and cancel the closure before recover() runs. * * PASSWORD recovery is skipped — it requires explicit user input. * * On failure: surfaces recoveryError in the store. Does NOT auto-create a new wallet * because silently replacing a wallet can strand the user's funds. */ export declare function useAutoRecovery({ storeEmbeddedState, storeActiveEmbeddedAddress, openfort, walletConfig, store, }: Params): void; export {};