import { type ChainTypeEnum, 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 = { openfort: Openfort; storeEmbeddedAccounts: OpenfortStore['embeddedAccounts']; storeEmbeddedState: OpenfortStore['embeddedState']; storeActiveEmbeddedAddress: OpenfortStore['activeEmbeddedAddress']; chainType: ChainTypeEnum; store: StoreApi; walletConfig: OpenfortWalletConfig | undefined; }; /** * Syncs the active embedded address into the store. * * - Clears address when there are no accounts or user is logged out. * - When connectOnLogin is false and the session went through * EMBEDDED_SIGNER_NOT_CONFIGURED (login flow), skips auto-seeding at READY * so the user must pick a wallet explicitly. * - Returning sessions (SDK starts directly at READY) always auto-seed. */ export declare function useActiveAddressSync({ openfort, storeEmbeddedAccounts, storeEmbeddedState, storeActiveEmbeddedAddress, chainType, store, walletConfig, }: Params): void; export {};