import { type Wallet } from '@layerswap/widget-types'; import { WalletConnectionProvider } from "@layerswap/wallet-core/types"; import { SwapDirection } from '../exports'; export type { ManualDestAddress } from '../stores/manualDestAddressesStore'; type PickerAccountsProviderProps = { children: React.ReactNode; }; type BaseAccountIdentity = { address: string; providerName: string; id: string; }; export type AccountIdentity = BaseAccountIdentity & { displayName: string; addresses: string[]; provider: WalletConnectionProvider; icon?: string; }; export type AccountIdentityWithSupportedNetworks = AccountIdentity & { walletWithdrawalSupportedNetworks: Wallet['withdrawalSupportedNetworks']; walletAutofillSupportedNetworks: Wallet['autofillSupportedNetworks']; walletAsSourceSupportedNetworks: Wallet['asSourceSupportedNetworks']; }; export declare function SwapAccountsProvider({ children }: PickerAccountsProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useSwapAccounts(direction: "from"): AccountIdentityWithSupportedNetworks[]; export declare function useSwapAccounts(direction: "to"): AccountIdentity[]; export declare function useSwapAccounts(direction: SwapDirection): (AccountIdentity | AccountIdentityWithSupportedNetworks)[]; export declare function useSelectedAccount(direction: "from", networkName: string | undefined): AccountIdentityWithSupportedNetworks | undefined; export declare function useSelectedAccount(direction: "to", networkName: string | undefined): AccountIdentity | undefined; export declare function useSelectedAccount(direction: SwapDirection, networkName: string | undefined): AccountIdentity | AccountIdentityWithSupportedNetworks | undefined; /** * The full source account most recently chosen via selectSourceAccount, * resolved against the live source accounts (so it carries the wallet's * supported-network info). Returns undefined before any source pick. Used by * single-wallet flows that need to scope to the latest connected wallet rather * than every connected provider. */ export declare function useLatestSourceAccount(): AccountIdentityWithSupportedNetworks | undefined; export declare function useNetworkBalanceKey(direction: SwapDirection, networkName: string | undefined): string | undefined; export declare function useNetworkBalance(direction: SwapDirection, networkName: string | undefined): import("../stores/balanceStore").BalanceEntry; export declare function useManualDestAddresses(): import("../stores/manualDestAddressesStore").ManualDestAddress[]; export declare function useSelectSwapAccount(direction: SwapDirection): (account: BaseAccountIdentity) => void; //# sourceMappingURL=swapAccounts.d.ts.map